:root {
  --orange: #ff6537;
  --orange-deep: #e8552b;
  --ink: #333333;
  --muted: #999999;
  --bg: #ffffff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scrollbar-gutter: stable; overflow-y: scroll; overflow-anchor: none; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "思源黑体 CN", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ===== 顶栏 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 0 40px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-bottom: 1px solid #efefef;
}
.topbar nav { display: flex; align-items: center; gap: 42px; }
.topbar nav a {
  color: var(--ink); text-decoration: none; font-size: 15px;
  letter-spacing: 1px; opacity: .85;
  padding: 6px 14px;
  border-radius: 20px;
  transition: opacity .2s, background .2s, color .2s;
}
.topbar nav a:hover { opacity: 1; }
.topbar nav a.active {
  opacity: 1;
  color: #cd7088;
}

/* 登录入口固定槽宽：登录后「注册/登录」会换成头像，两者宽度不同。
   固定最小宽度让切换页面时导航不因登录态渲染而左右跳动。 */
@media (min-width: 721px) {
  .topbar nav #nav-auth { min-width: 110px; }
  .topbar nav .nav-user { min-width: 110px; }
}

/* 登录头像（顶栏）：登录后替换「注册/登录」，点头像下方弹出「退出登录」 */
.nav-user { position: relative; display: inline-flex; align-items: center; }
.nav-user .nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #cd7088;
  overflow: hidden;
  opacity: 1;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: opacity .2s;
}
.nav-user .nav-avatar:hover { opacity: .85; }
.nav-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 120px;
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  padding: 6px 0;
  z-index: 300;
}
.nav-user-logout {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: 1px;
}
.nav-user-logout:hover { background: #fdf0f5; color: #cd7088; }

/* ===== 轮播大图 ===== */
.banner {
  position: relative;
  width: 100%;
  height: calc(100vh - 66px);
  height: calc(100dvh - 66px);
  min-height: 420px;
  max-height: 720px;
  overflow: hidden;
  background: #000;
}
.banner .slide {
  position: absolute; inset: 0;
  transform: translateX(100%);
  transition: transform .65s cubic-bezier(.45, 0, .15, 1);
  display: flex; align-items: center; justify-content: center;
  padding: 0 40px;
  overflow: hidden;
}
.banner .slide.active { transform: translateX(0); z-index: 2; }
.banner .slide .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.banner .slide::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.28);
}
.banner .slide .txt {
  position: relative; z-index: 3;
  text-align: center;
  color: #fff;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 4px;
  font-size: clamp(30px, 5vw, 60px);
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
  transform: translateY(-40px);
}
.banner .slide .txt .main { display: block; white-space: nowrap; }
.banner .slide .txt .sub { display: block; font-size: clamp(20px, 2.8vw, 34px); margin-top: 42px; letter-spacing: 6px; font-weight: 600; white-space: nowrap; }
.banner .dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 5; display: flex; gap: 10px;
}
.banner .dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer; transition: all .3s;
}
.banner .dots span.active { background: #fff; width: 28px; border-radius: 6px; }
.banner .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.28);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background .2s;
}
.banner .arrow:hover { background: rgba(0,0,0,.45); }
.banner .arrow.prev { left: 22px; }
.banner .arrow.next { right: 22px; }

/* ===== 占位页（静待开放） ===== */
.coming {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 66px);
  min-height: calc(100dvh - 66px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}
.coming::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('b1.png');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(2.0);
  opacity: 0.25;
}
.coming .big {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 6px;
  color: var(--muted);
  text-indent: 6px;
}
.coming .line {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 26px auto;
}
.coming .hint { font-size: 14px; letter-spacing: 3px; color: var(--muted); }

/* ===== 关于我们 · 金鳞智能咨询 ===== */
.zixun {
  height: calc(100vh - 66px);
  height: calc(100dvh - 66px);
  position: relative;
  background: #f5f6fc;
}
.zixun-frame {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.zixun-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}
/* 关于我们页：页脚也融成淡紫蓝，让「满屏」一致 */
.zixun + footer { background: #f5f6fc; }

/* ===== 页脚 ===== */
footer {
  text-align: center;
  padding: 22px 20px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
  background: #f6f6f6;
}
footer .icp { margin-bottom: 8px; }
footer .icp a { color: var(--muted); text-decoration: none; }
footer .icp a:hover { color: var(--ink); }
footer .icp .sep { color: #ccc; margin: 0 12px; }

@media (max-width: 720px) {
  .topbar { padding: 0; justify-content: flex-start; }
  .topbar nav {
    gap: 0;
    flex-wrap: nowrap;
    padding: 10px 10px;
    width: 100%;
    justify-content: space-between;
  }
  .topbar nav a {
    font-size: 12px;
    letter-spacing: 0;
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 14px;
  }
  .banner { height: 58vh; min-height: 300px; }
  .banner .slide { padding: 0 22px; }
  .coming .big { font-size: 14px; letter-spacing: 4px; text-indent: 4px; }
}

@media (max-width: 480px) {
  .banner .slide .txt .main { font-size: 18px; letter-spacing: 1px; }
  .banner .slide .txt .sub { font-size: 14px; letter-spacing: 2px; }
}

/* ===== 登录/注册页 & 会员专区 ===== */
.auth { height: calc(100vh - 66px); height: calc(100dvh - 66px); display: flex; align-items: center; justify-content: flex-end; padding: 40px 100px 180px 24px; background: #f5f6fc; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid #efefef; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.06); padding: 32px 28px; }
.auth-title { margin-bottom: 18px; text-align: center; font-size: 20px; color: var(--ink); }
.auth-switch { display: flex; gap: 8px; margin-bottom: 20px; }
.auth-sub { flex: 1; padding: 8px 0; border: none; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s; }
.auth-sub:hover { color: #8f93dd; }
.auth-sub.active { color: #8f93dd; border-bottom-color: #8f93dd; }
.auth-remember-row { display: flex; align-items: center; justify-content: space-between; }
.auth-link { border: none; background: none; color: #cd7088; font-size: 14px; cursor: pointer; padding: 0; }
.auth-switchline { text-align: center; font-size: 14px; color: var(--muted); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form input[type=email], .auth-form input[type=password], .auth-form input[type=text] { padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 15px; outline: none; }
.auth-form input:focus { border-color: #cd7088; }
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row input { flex: 1; }
.auth-code-btn { white-space: nowrap; padding: 0 14px; border: 1px solid #cd7088; background: #fff; color: #cd7088; border-radius: 8px; cursor: pointer; font-size: 13px; }
.auth-code-btn:disabled { color: #bbb; border-color: #ddd; cursor: not-allowed; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.auth-btn { display: block; width: 100%; padding: 13px; border: none; border-radius: 8px; background: #cd7088; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 4px; cursor: pointer; text-align: center; text-decoration: none; }
.auth-btn:hover { background: #b8657a; }
.auth-btn.ghost { background: #f4f4f4; color: var(--ink); font-weight: 400; letter-spacing: 0; }
/* 注册/登录页：跟「关于我们」统一淡紫蓝色系（仅 .auth 作用域，不影响管理员后台） */
.auth + footer { background: #f5f6fc; }
.auth .auth-link { color: #8f93dd; transition: color .2s; }
.auth .auth-link:hover { color: #767ac9; }
.auth .auth-form input:focus { border-color: #8f93dd; }
.auth .auth-code-btn { border-color: #8f93dd; color: #8f93dd; transition: color .2s, border-color .2s; }
.auth .auth-code-btn:hover { border-color: #767ac9; color: #767ac9; }
.auth .auth-btn { background: #8f93dd; font-weight: 400; transition: background .2s; }
.auth .auth-btn:hover { background: #767ac9; }
.auth-msg { min-height: 20px; margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-msg.err { color: #e8552b; }
.auth-msg.ok { color: #2e9e5b; }
.auth-authed { text-align: center; font-size: 16px; margin-bottom: 18px; }
.auth-authed-actions { display: flex; gap: 10px; }
.wechat-qr { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 10px 0 6px; }
.wechat-qr-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 184px; height: 184px; border: 1px dashed #ddd; border-radius: 12px; background: #fafafa; color: var(--muted); }
.wechat-qr-icon { width: 54px; height: 54px; opacity: .55; }
.wechat-qr-text { font-size: 14px; }
.wechat-qr-hint { font-size: 14px; color: var(--muted); }

.vip { flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 66px); min-height: calc(100dvh - 66px); }
.vip-locked { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.vip .big { font-size: 16px; letter-spacing: 6px; color: var(--muted); }
.vip .line { width: 44px; height: 3px; background: #e0e0e0; border-radius: 2px; margin: 26px auto; }
.vip-unlocked { flex: 1; display: flex; flex-direction: column; width: 100%; min-height: 0; }
.vip-locked .auth-btn { width: auto; padding: 12px 32px; display: inline-block; }
.vip-frame { flex: 1; width: 100%; border: none; display: block; min-height: 0; }

/* 会员专区：左右两半（左=角色聊天软件二维码，右=AI诺工作平台登录） */
.vip-split { flex: 1; display: flex; min-height: 0; width: 100%; }
.vip-left {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 24px;
  border-right: 1px solid #efefef;
  background: #fafafa;
}
/* 顶部占位与下方「天府企池 + 暂未开放」等高，让二维码卡片本身上下居中（与右侧登录窗口同一水平线） */
.vip-left::before {
  content: "";
  flex: 0 0 66px;
}
.vip-right { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.vip-qr-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 300px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}
.vip-qr-svg { width: 240px; height: 240px; color: hsl(28, 62%, 40%); }
.vip-qr-title { font-size: 20px; line-height: 28px; font-weight: 700; color: hsl(28, 62%, 40%); letter-spacing: 1px; }
.vip-qr-hint { font-size: 14px; line-height: 20px; color: hsl(28, 40%, 50%); letter-spacing: 1px; }

@media (max-width: 720px) {
  .vip-split { flex-direction: column; }
  .vip-left { width: 100%; border-right: none; border-bottom: 1px solid #efefef; padding: 24px 16px; }
  .vip-left::before { display: none; }
  .vip-qr-card { width: 220px; height: 220px; }
  .vip-qr-svg { width: 172px; height: 172px; }
}

/* ===== 管理员后台 ===== */
.admin { flex: 1; padding: 40px 24px 80px; }
.admin-login-card { width: 100%; max-width: 400px; margin: 60px auto 0; background: #fff; border: 1px solid #efefef; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.06); padding: 32px 28px; }
.admin-login-card h2 { text-align: center; font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.admin-dash { max-width: 1080px; margin: 0 auto; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-head h2 { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.admin-head-right { display: flex; align-items: center; gap: 10px; }
.admin-head-right .auth-btn { width: auto; padding: 8px 18px; font-size: 14px; letter-spacing: 2px; }
.admin-updated { font-size: 12px; color: var(--muted); margin-right: 6px; }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 24px; }
.admin-stat { background: #fff; border: 1px solid #efefef; border-radius: 12px; padding: 20px 16px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.admin-stat-num { font-size: 30px; font-weight: 700; color: #cd7088; line-height: 1.1; }
.admin-stat-label { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: 1px; }
.admin-trend { background: #fff; border: 1px solid #efefef; border-radius: 12px; padding: 20px 24px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.admin-trend-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: 1px; }
.admin-bars { display: flex; align-items: flex-end; gap: 8px; }
.admin-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; }
.admin-bar-wrap { height: 100px; display: flex; align-items: flex-end; }
.admin-bar { width: 26px; background: #cd7088; border-radius: 4px 4px 0 0; display: flex; align-items: flex-start; justify-content: center; transition: height .3s; }
.admin-bar-num { font-size: 11px; color: #fff; margin-top: 4px; }
.admin-bar-date { font-size: 12px; color: var(--muted); margin-top: 8px; }
.admin-search { display: flex; gap: 10px; margin-bottom: 16px; }
.admin-search input { flex: 1; max-width: 320px; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none; }
.admin-search input:focus { border-color: #cd7088; }
.admin-search .auth-btn { width: auto; padding: 10px 26px; font-size: 14px; letter-spacing: 2px; }
.admin-table-wrap { overflow: hidden; border: 1px solid #efefef; border-radius: 12px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.admin-table th { background: #fafafa; color: var(--muted); font-weight: 600; letter-spacing: 1px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafafa; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.badge-ok { background: #e6f7ee; color: #2e9e5b; }
.badge-bad { background: #fdeaea; color: #e8552b; }
.mini-btn { padding: 5px 12px; border: 1px solid #cd7088; background: #fff; color: #cd7088; border-radius: 6px; cursor: pointer; font-size: 13px; }
.mini-btn:hover { background: #cd7088; color: #fff; }
.mini-btn.danger { border-color: #e8552b; color: #e8552b; }
.mini-btn.danger:hover { background: #e8552b; color: #fff; }
.admin-empty { text-align: center; padding: 40px 0; color: var(--muted); font-size: 14px; background: #fff; border: 1px solid #efefef; border-radius: 12px; }
.admin-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.pager-info { font-size: 13px; color: var(--muted); }
.admin-pager .mini-btn:disabled { opacity: .4; cursor: not-allowed; }
.mini-btn.mail { border-color: #2e9e5b; color: #2e9e5b; }
.mini-btn.mail:hover { background: #2e9e5b; color: #fff; }
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { width: 100%; max-width: 480px; background: #fff; border-radius: 14px; padding: 26px 28px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.modal h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.modal-field input, .modal-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; resize: vertical; }
.modal-field input:focus, .modal-field textarea:focus { border-color: #cd7088; }
.modal-recipient { padding: 10px 12px; background: #f7f7f7; border-radius: 8px; font-size: 14px; color: var(--ink); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.modal-actions .auth-btn { width: auto; padding: 10px 26px; font-size: 14px; letter-spacing: 2px; }
@media (max-width: 720px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-head { flex-direction: column; gap: 12px; align-items: flex-start; }
  .admin-table-wrap { overflow-x: auto; }
}
