/* ============ 会员资讯系统 · 蓝色主题 / 适老大字体 / 自适应 ============ */
:root {
  --brand: #0052D9;
  --brand-deep: #003CB3;
  --brand-light: #E8F0FF;
  --bg: #F4F7FD;
  --card: #FFFFFF;
  --text: #1B2A4A;
  --text-2: #5A6B8C;
  --line: #DCE5F5;
  --ok: #0E9F6E;
  --warn: #D97706;
  --danger: #DC2626;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(11, 43, 110, 0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;              /* 适老：基础字号偏大 */
  line-height: 1.65;
}
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; font-size: 17px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0052D9, #003CB3);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0, 60, 179, .25);
}
.topbar__logo { font-size: 19px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }
.topbar__logo small { font-weight: 400; opacity: .8; font-size: 13px; margin-left: 6px; }
.topbar__nav { display: flex; gap: 6px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.topbar__btn {
  border: none; background: rgba(255,255,255,.14); color: #fff;
  font-size: 15px; padding: 7px 14px; border-radius: 999px;
  transition: background .15s;
}
.topbar__btn:hover { background: rgba(255,255,255,.28); }
.topbar__btn--avatar { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--brand); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}

/* ---------- 布局 ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.card h2 { font-size: 21px; margin-bottom: 14px; }
.muted { color: var(--text-2); font-size: 15px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 15px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; padding: 12px 22px;
  font-size: 17px; font-weight: 600;
  background: var(--brand); color: #fff;
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn--taobao { background: #FF5000; }
.btn--sm { padding: 7px 13px; font-size: 15px; border-radius: 8px; }
.btn--line { background: #fff; color: var(--brand); border: 1.5px solid var(--line); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-img {
  width: 152px; height: 48px; border: 1px solid var(--line);
  border-radius: 8px; cursor: pointer; background: #F2F6FE; flex: none;
}
.link-btn { background: none; border: none; color: var(--brand); font-size: 15px; padding: 4px; }

/* ---------- 登录/注册 ---------- */
.auth { max-width: 460px; margin: 40px auto; }
.auth__tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.auth__tab {
  flex: 1; padding: 12px; border: none; border-radius: 10px;
  background: #E8EDF7; color: var(--text-2); font-size: 17px; font-weight: 600;
}
.auth__tab.is-on { background: var(--brand); color: #fff; }

/* ---------- 省份卡片 ---------- */
.pcard {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: border-color .15s, transform .1s;
  display: flex; flex-direction: column; gap: 6px;
}
.pcard:hover { border-color: var(--brand); transform: translateY(-2px); }
.pcard__name { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pcard__meta { font-size: 14px; color: var(--text-2); }
.pcard.is-home { border-color: var(--brand); background: linear-gradient(180deg, #F5F9FF, #fff); }
.badge {
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand); white-space: nowrap;
}
.badge--lock { background: #FDF0E3; color: var(--warn); }
.badge--open { background: #E5F8F0; color: var(--ok); }
.badge--home { background: var(--brand); color: #fff; }

/* ---------- 资讯列表 ---------- */
.sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; margin: 22px 0 12px;
}
.sec-title::before { content: ""; width: 4px; height: 18px; background: var(--brand); border-radius: 2px; }
.item {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 10px;
}
.item__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.item__title { font-size: 17px; font-weight: 600; line-height: 26px; }
.item__title a { color: var(--text); border-bottom: 1px dotted var(--brand); }
.item__date { font-size: 14px; color: var(--text-2); }
.item--expired { opacity: .75; }
/* 已申报：整条变灰，视觉上退到后台 */
.item--declared { opacity: .55; filter: grayscale(.85); }
.item--declared:hover { opacity: .8; }
/* 推荐语 */
.item__note {
  margin-top: 6px; font-size: 14px; line-height: 22px; color: #7A5A2A;
  background: #FFFBF3; border: 1px dashed #F5D9A8; border-radius: 8px; padding: 6px 10px;
}
/* 未读 / 已读 */
.item__read {
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #FDECEC; color: var(--danger);
}
.item__read.is-read { background: #EEF1F6; color: var(--text-2); font-weight: 500; }
/* 收藏 / 申报 小按钮 */
.item__acts { margin-left: auto; display: flex; gap: 6px; flex: none; }
.act-btn {
  border: 1px solid var(--line); background: #fff; color: var(--text-2);
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  transition: border-color .15s, color .15s, background .15s;
}
.act-btn:hover { border-color: var(--brand); color: var(--brand); }
.act-btn--fav.is-on { border-color: #F5A623; color: #B97A00; background: #FFF7E8; }
.act-btn--decl.is-on { border-color: var(--ok); color: var(--ok); background: #E9F9F2; }
/* 顶栏角标 */
.nav-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px;
  border-radius: 999px; background: #FF5000; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px;
}
/* 铃铛按钮（管理员：网址自检消息） */
.topbar__btn--bell { position: relative; font-size: 16px; padding: 7px 12px; }
.bell-ico { line-height: 1; }

/* ---------- 铃铛消息列表 ---------- */
.bell-list { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bell-item {
  border: 1px solid var(--line); border-left: 3px solid var(--danger);
  border-radius: 8px; padding: 10px 12px; background: #FDF7F7;
}
.bell-item__head { font-size: 15px; font-weight: 600; line-height: 22px; }
.bell-item__url {
  font-size: 13px; margin: 4px 0 2px; word-break: break-all;
}
.bell-item__url a { color: var(--brand); }
.bell-item__err { font-size: 13px; color: var(--danger); }
.bell-item__ops { margin-top: 8px; }

/* ---------- 网址状态徽标（资讯管理表格） ---------- */
.uc-badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap; vertical-align: 2px;
}
.uc-badge--dead { background: #FDECEC; color: var(--danger); }
.uc-badge--blocked { background: #FDF0E3; color: var(--warn); }
.chip {
  font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 6px;
  background: var(--brand-light); color: var(--brand); flex: none;
}
.chip--star { background: #FFF6E0; color: #B97A00; letter-spacing: 1px; }
.chip--long { background: #E5F8F0; color: var(--ok); }
.chip--urgent { background: #FDECEC; color: var(--danger); }
.chip--expired { background: #EEF1F6; color: var(--text-2); }

/* ---------- 锁定面板 / 订阅 ---------- */
.locked {
  background: linear-gradient(135deg, #FFF8F0, #FFF);
  border: 1.5px solid #F5C48A; border-radius: var(--radius);
  padding: 20px; margin: 16px 0;
}
.locked h3 { font-size: 19px; color: #9A5B00; margin-bottom: 8px; }
.locked p { font-size: 16px; color: #7A5A2A; margin-bottom: 6px; }
.locked__stats { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 16px; }
.stat b { font-size: 26px; color: var(--brand); font-weight: 700; }
.stat span { font-size: 14px; color: var(--text-2); margin-left: 4px; }
.poster-hint { font-size: 14px; color: var(--text-2); margin-top: 10px; }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { color: var(--text-2); font-weight: 600; background: #F7FAFF; }
.tbl tr:hover td { background: #F7FAFF; }
.tbl--wrap { overflow-x: auto; }
.tbl td .btn { margin: 2px 4px 2px 0; }
.exp-ok { color: var(--ok); font-weight: 600; }
.exp-no { color: var(--danger); font-weight: 600; }

/* ---------- 邀请码 / 排行榜 ---------- */
.code-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--brand-light); border: 1.5px dashed var(--brand);
  border-radius: 10px; padding: 14px 16px; margin: 10px 0;
}
.code-box b { font-size: 26px; letter-spacing: 3px; color: var(--brand); }
.rank-num {
  display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
  align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  background: #EEF2F9; color: var(--text-2);
}
.rank-num--1 { background: #FFE9B8; color: #9A6B00; }
.rank-num--2 { background: #E8ECF3; color: #5A6B8C; }
.rank-num--3 { background: #F6DFC8; color: #96502A; }

/* ---------- 弹层 / 提示 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 30, 70, .55); display: flex;
  align-items: center; justify-content: center; padding: 18px;
}
.modal {
  background: #fff; border-radius: 14px; padding: 22px;
  width: min(560px, 96vw); max-height: 88vh; overflow-y: auto;
}
.modal h3 { font-size: 19px; margin-bottom: 14px; }
.grant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.grant-grid label {
  display: flex; align-items: center; gap: 6px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.grant-grid input { width: 17px; height: 17px; accent-color: var(--brand); }
.toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%);
  background: rgba(15, 30, 60, .92); color: #fff; font-size: 16px;
  padding: 11px 22px; border-radius: 999px; z-index: 200;
  max-width: 88vw; text-align: center;
}
.empty { text-align: center; color: var(--text-2); padding: 34px 10px; font-size: 16px; }

/* ---------- 手机自适应 ---------- */
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .topbar { padding: 9px 12px; gap: 8px; }
  .topbar__logo { font-size: 16px; }
  .topbar__logo small { display: none; }
  .topbar__btn { padding: 6px 11px; font-size: 14px; }
  .wrap { padding: 14px 12px 60px; }
  .card { padding: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .pcard { padding: 12px; }
  .stat b { font-size: 22px; }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td { padding: 8px 6px; }
}
