/* 科技淡蓝主题样式 */

:root {
  --primary: #4da6ff;
  --primary-600: #3b94ef;
  --primary-700: #2d7bd9;
  --bg: #f6fbff;
  --text: #0b1b2b;
  --muted: #6b7c8f;
  --card: #ffffff;
  --border: #e6eef6;
  /* Font scale */
  --fs-title: clamp(28px, 3.8vw, 42px);
  --fs-h2: clamp(18px, 2.2vw, 22px);
  --fs-h3: 17px;
  --fs-body: 15px;
  --fs-small: 13px;
  --font-numeric: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 400px at 10% -60%, rgba(77, 166, 255, 0.12), transparent 60%),
    radial-gradient(800px 300px at 90% -40%, rgba(61, 148, 239, 0.12), transparent 60%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: var(--fs-body);
}

.container {
  width: min(1040px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-left: 6px;
}

.logo img {
  height: 34px;
  width: auto;
  display: block;
}

.logo span {
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-700);
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #23354a;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.nav a:hover {
  color: var(--primary-700);
}

.nav .highlight {
  color: var(--primary-700);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header: Avatar + Inline ID + Dropdown */
.profile-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  /* 扩大可点击/悬停面积 */
  border-radius: 10px;
  cursor: pointer;
}

/* Header avatar */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #cfe0f2;
  /* 更轻的边框更协调 */
  background: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(61, 148, 239, 0.12);
}

.avatar:hover {
  box-shadow: 0 6px 14px rgba(61, 148, 239, 0.18);
}

.avatar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.35);
}

/* Inline ID next to avatar */
.inline-user-id {
  color: #274560;
  font-size: 14px;
  font-weight: 400;
  /* 不加粗 */
  cursor: pointer;
}

/* Profile panel dropdown */
.profile-panel {
  position: absolute;
  left: 50%;
  /* 居中到头像与ID文字的正中 */
  transform: translateX(-50%);
  top: 44px;
  /* 紧贴头像底部略留空隙 */
  z-index: 20;
  display: none;
}

.profile-panel.open {
  display: block;
}

.profile-card {
  display: inline-block;
  width: fit-content;
  min-width: 330px;
  max-width: 560px;
  background: #fff;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(61, 148, 239, 0.18);
  padding: 12px 16px;
}

.profile-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  /* 去掉右侧独立列 */
  gap: 12px;
  align-items: center;
}

.profile-badge {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  /* 圆形徽标 */
  border: 1px solid #cfe0f2;
  background: #fff;
}

.profile-info {
  display: grid;
  gap: 6px;
}

.profile-id,
.profile-vip {
  font-size: 13px;
}

/* 通用按钮：标记为已投递 */
.mark-delivered-btn {
  padding: 4px 10px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #409EFF;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s ease;
  will-change: transform;
}

.mark-delivered-btn:hover {
  box-shadow: 0 2px 8px rgba(58, 142, 230, .25);
  transform: translateY(-1px);
}

.mark-delivered-btn:focus-visible {
  outline: 2px solid #a0cfff;
  outline-offset: 2px;
}

.mark-delivered-btn:disabled {
  opacity: .9;
  cursor: default;
}

.profile-id {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-id .label,
.profile-vip .label {
  margin-right: 2px;
  font-size: 13px;
}

/* 退出按钮：移除选中/按下/聚焦高亮，不影响悬停 */
#panelLogout,
#panelLogout:focus,
#panelLogout:focus-visible,
#panelLogout:active,
.logout-inline:focus,
.logout-inline:focus-visible,
.logout-inline:active,
.logout-inline.active {
  outline: none;
  box-shadow: none;
  background: transparent;
  border-color: #9cc8ff;
  /* 保持边框一致 */
}

.btn-mini {
  height: 20px;
  line-height: 20px;
  padding: 0 3px;
  border-radius: 2px;
  font-size: 12px;
}

.btn-small {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.profile-actions .btn:focus,
.profile-actions .btn:focus-visible,
.profile-actions .btn:active,
.profile-actions .btn.active {
  outline: none;
  box-shadow: none;
}

/* 面板操作区按钮：保留悬停，移除选中/按下/聚焦高亮 */
#profileFav:focus,
#profileFav:focus-visible,
#profileFav:active,
#profileFav.active,
#profileApps:focus,
#profileApps:focus-visible,
#profileApps:active,
#profileApps.active,
#profilePending:focus,
#profilePending:focus-visible,
#profilePending:active,
#profilePending.active {
  outline: none !important;
  box-shadow: none !important;
}

/* 移除移动端点击高亮，不影响悬停背景 */
#profileFav,
#profileApps,
#profilePending {
  -webkit-tap-highlight-color: transparent;
}

/* 调整按钮顺序：待投递列表居中 */
#profileFav {
  order: 1;
}

#profilePending {
  order: 2;
}

#profileApps {
  order: 3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Remove WebKit tap highlight (mobile Safari/Chrome) to avoid black circle */
button,
.btn,
.get-code {
  -webkit-tap-highlight-color: transparent;
}

/* Improve focus state to avoid default black outline */
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.35);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(77, 166, 255, 0.45);
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-700));
}

.btn-outline {
  background: transparent;
  color: var(--primary-700);
  border-color: var(--primary-600);
}

.btn-outline:hover {
  background: rgba(77, 166, 255, 0.08);
}

/* 静态按钮：保持视觉但不表现为可点击（用于“岗位数/单位数”） */
.btn-static {
  cursor: default;
  pointer-events: none;
}

.btn-static:hover {
  background: transparent;
}

.btn-ghost {
  background: rgba(77, 166, 255, 0.12);
  color: var(--primary-700);
}

.btn-ghost:hover {
  background: rgba(77, 166, 255, 0.18);
}

/* Hero */
.hero {
  padding: 84px 0 40px;
  text-align: center;
}

.hero-inner h1 {
  font-size: var(--fs-title);
  margin: 0 0 14px;
}

.subtitle {
  color: var(--muted);
  font-size: var(--fs-body);
  max-width: 720px;
  margin: 0 auto 24px;
}

/* Homepage hero subtitle: larger and clearer */
.hero .subtitle {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  display: block;
  max-width: min(1000px, 92vw);
  /* 继承 .subtitle 的 max-width 与居中外边距 */
}

.cta {
  display: inline-flex;
  gap: 14px;
}

/* Larger hero CTA buttons for better tap/click target */
.hero .btn {
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 22px;
}

/* Metrics under plugin intro */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 18px;
  padding: 6px 0;
}

.metric {
  text-align: center;
}

.metric-value {
  font-family: var(--font-numeric);
  font-weight: 800;
  font-size: clamp(18px, 2.3vw, 22px);
  color: #0b1b2b;
  letter-spacing: 0.5px;
}

.metric-label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .metrics {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
  }

  .metric-value {
    font-size: clamp(16px, 4.8vw, 20px);
  }
}

/* Beautify hero title */
.hero-inner h1 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.3px;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Center download button in plugin intro */
.intro-actions {
  display: flex;
  justify-content: center;
}

/* Hint under three installation methods */
.install-offline-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

/* Sections */
.section {
  padding: 35px 0;
}

.section h2 {
  font-size: var(--fs-h2);
  margin: 0 0 18px;
}

.section-muted {
  background: rgba(77, 166, 255, 0.06);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-white {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(77, 166, 255, 0.14);
}

.card-icon {
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(77, 166, 255, 0.12);
  border-radius: 12px;
}

.card h3 {
  margin: 14px 0 8px;
  font-size: var(--fs-h3);
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: var(--fs-body);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Small button variant to match site style */
.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Extra small button variant */
.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

/* Video */
.video-wrap {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
}

.product-video {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  margin: 0;
  object-fit: cover;
}

/* 首页产品视频切换 */
.video-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 8px 0 12px;
}

.video-switcher .switch-tab {
  display: inline-block;
  font-size: 14px;
  line-height: 24px;
  padding: 4px 10px;
  border-radius: 12px;
  color: #3a8ee6;
  background: #eaf3ff;
  border: 1px solid #bcd9ff;
  text-decoration: none;
  transition: all .15s ease;
}

.video-switcher .switch-tab:hover {
  background: #ddecff;
  box-shadow: 0 2px 8px rgba(58, 142, 230, .18);
}

.video-switcher .switch-tab.active {
  color: #fff;
  background: #409EFF;
  border-color: #409EFF;
}

.text-highlight {
  background: linear-gradient(transparent 60%, #eaf3ff 60%);
  color: #2a6ce7;
  font-weight: 700;
  font-size: 1.05em;
  padding: 0 2px;
  border-radius: 2px;
}

/* Footer */
.site-footer {
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.footer-right {
  display: flex;
  gap: 16px;
}

.footer-right a {
  color: var(--muted);
  text-decoration: none;
}

.footer-right a:hover {
  color: var(--primary-700);
}

/* Responsive */
@media (max-width: 840px) {
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav a {
    font-size: 14px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 12px 6px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* Expanded Footer (dark tech style) */
.footer-expanded {
  background: #121826;
  color: #c9d7e8;
  padding: 48px 0 18px;
  border-top: 1px solid rgba(230, 238, 246, 0.12);
}

.footer-expanded a {
  color: #c9d7e8;
  text-decoration: none;
}

.footer-expanded a:hover {
  color: #8fb9ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.footer-col h4 {
  color: #e6f0ff;
  margin: 0 0 12px;
  font-size: var(--fs-body);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: var(--fs-small);
}

.contact-mail {
  margin: 0 0 12px;
}

.qrcode-group {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 16px;
}

.qrcode-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qrcode-placeholder {
  width: 120px;
  height: 120px;
  background: #1b2433;
  border: 1px dashed #324257;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(77, 166, 255, 0.18);
}

.qrcode-label {
  font-size: 12px;
  color: #a8bdd6;
}

.footer-bar {
  display: grid;
  place-items: center;
  text-align: center;
  border-top: 1px solid rgba(230, 238, 246, 0.12);
  margin-top: 28px;
  padding-top: 16px;
  font-size: var(--fs-small);
  color: #8fa2b8;
}

.footer-bar .sep {
  margin: 0 6px;
  color: #5f738b;
}

@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qrcode-group {
    grid-template-columns: 1fr 1fr;
  }
}

/* Plugin Guide & Download */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: #2d3f55;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  min-width: 140px;
  white-space: nowrap;
  transition: all .18s ease;
}

.tab:hover {
  background: #f0f7ff;
  border-color: rgba(77, 166, 255, 0.38);
  color: #1f7ae0;
}

.tab.active {
  background: linear-gradient(180deg, #eaf4ff, #dbeeff);
  border-color: rgba(77, 166, 255, 0.38);
  color: var(--primary-700);
  box-shadow: none;
}

.tab:focus-visible {
  outline: 2px solid rgba(31, 122, 224, 0.4);
  outline-offset: 2px;
}

/* Utility hidden for tab panes */
.hidden {
  display: none !important;
}

/* Tab panes and grid layout */
.tab-pane {
  margin-top: 6px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding-top: 14px;
}

/* Slightly widen the left video in the app guide section */
#download .guide-grid {
  grid-template-columns: 1.0fr 0.8fr;
}

.intro-copy h3 {
  margin: 0 0 8px;
  color: #23354a;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 800;
}

.muted {
  color: var(--muted);
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 6px 0 12px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: var(--fs-body);
}

.bullets li::before {
  content: "•";
  color: #9fb3c8;
  margin-right: 6px;
}

.intro-actions {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-items: start;
}

.intro-os {
  color: var(--muted);
  font-size: var(--fs-small);
  display: inline-block;
  padding: 4px 10px;
  background: #f0f7ff;
  border: 1px solid #cfe0f2;
  border-radius: 999px;
}

.guide-frame {
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 30px rgba(61, 148, 239, 0.12);
  background: #fff;
  margin: 6px 0 18px;
  overflow: hidden;
}

.guide-title {
  display: none;
}

.guide-content {
  padding: 0;
  display: grid;
  place-items: center;
  gap: 0;
  aspect-ratio: 16/9;
}

.guide-video {
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: #000;
  object-fit: cover;
  display: block;
}

.guide-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 6px 0 0;
  box-shadow: none;
}

.guide-actions .btn {
  width: 100%;
  border-radius: 8px;
}

.plugin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 8px;
  align-items: stretch;
}

/* Boards & Ad section */
.rank-grid {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  gap: 12px;
  align-items: stretch;
}

/* Timeline */
.timeline-bar {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(61, 148, 239, 0.10);
}

.timeline-left {
  text-align: center;
}

.timeline-left .t-year {
  color: #1f7ae0;
  font-weight: 800;
}

.timeline-left .t-cap {
  color: #6b7a88;
  font-size: 12px;
}

.timeline-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.t-item {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 132px;
}

.t-month {
  background: #f0f7ff;
  border: 1px solid #cfe0f2;
  color: #23354a;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

.t-month.active {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #fff;
  position: relative;
  border-color: transparent;
}

.t-month.active::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #47e56b;
  border-radius: 50%;
}

.t-desc {
  background: transparent;
  border: none;
  color: #6b7a88;
  border-radius: 0;
  padding: 0;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
}

.t-item.active .t-desc {
  background: transparent;
  border: none;
  color: #23354a;
  font-weight: 600;
}

.timeline-right .btn {
  white-space: nowrap;
}

@media (max-width: 980px) {
  .timeline-bar {
    grid-template-columns: 1fr;
  }

  .timeline-left {
    display: none;
  }

  .timeline-right {
    justify-self: end;
  }

  .timeline-inner {
    justify-content: flex-start;
  }
}

.board-card {
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(77, 166, 255, 0.08);
  padding: 6px 8px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 260px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 4px;
  padding: 2px 0;
}

.board-title {
  font-weight: 700;
  color: #23354a;
  font-size: 14px;
  line-height: 1.2;
}

.board-link {
  color: var(--primary-700);
  font-size: 11px;
  line-height: 1.2;
}

.board-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  counter-reset: rank;
}

/* 栏目底部右侧“查看更多”按钮容器 */
.board-more {
  display: flex;
  justify-content: flex-end;
  padding: 6px 2px 2px;
}

.board-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 4px 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7fbff;
  position: relative;
  line-height: 1.6;
  /* 允许子项在flex内缩小，以便文本发生省略 */
  min-width: 0;
}

.board-list li::before {
  counter-increment: rank;
  content: counter(rank, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #2d7bd9;
  color: #fff;
  border-radius: 8px;
  font-size: 11px;
  padding: 1px 6px;
}

.board-list.wide li {
  background: #fff;
}

.board-list .name {
  color: #2d3f55;
  font-size: 12px;
  letter-spacing: .1px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-list .count {
  color: #1f7ae0;
  font-weight: 700;
  font-size: 12px;
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Left stats as clean list rows */
.stats-left {
  padding-top: 2px;
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: sindex;
  display: grid;
  gap: 6px;
}

.stats-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 4px 42px;
  border: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
  border-radius: 10px;
  background: #f7fbff;
}

.stats-item::before {
  counter-increment: sindex;
  content: counter(sindex, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #e9eff7;
  color: #23354a;
  border-radius: 8px;
  font-size: 12px;
  padding: 2px 6px;
  font-weight: 700;
}

.stats-item:last-child {
  border-bottom: none;
}

.label {
  color: #2d3f55;
  font-size: 12px;
}

.value {
  color: #1f7ae0;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1px;
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
}

.value strong {
  font-family: var(--font-numeric);
  font-variant-numeric: tabular-nums;
}

.value strong {
  font-weight: 800;
}

.stats-item:hover .label {
  color: #274560;
}

.stats-item:hover .value {
  color: #155fb8;
}

.ad-card {
  border-radius: 10px;
  background:
    radial-gradient(1200px 400px at 10% -60%, rgba(77, 166, 255, 0.14), transparent 60%),
    radial-gradient(800px 300px at 90% -40%, rgba(61, 148, 239, 0.12), transparent 60%),
    linear-gradient(180deg, #e8f3ff, #d9ecff);
  border: 1px solid #cfe0f2;
  box-shadow: 0 8px 18px rgba(61, 148, 239, 0.12);
  display: grid;
  place-items: center;
}

/* 广告轮播卡覆盖基础内边距与布局 */
.ad-slider-card {
  padding: 0;
  /* 覆盖 .ad-card 的居中，使内部内容垂直拉伸填满 */
  place-items: stretch;
}

/* 广告轮播容器与轨道 */
.ad-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  background: #f7fbff;
}

@media (min-width: 1024px) {
  .ad-slider {
    min-height: 320px;
  }

  .board-card {
    min-height: 300px;
  }
}

.ad-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.ad-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 400ms ease;
}

.ad-slide.active {
  opacity: 1;
}

.ad-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
}

.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(61, 148, 239, 0.6);
  padding: 0;
}

.ad-dot.active {
  background: #2d7bd9;
  border-color: #2d7bd9;
}

.stats-block {
  margin-top: 12px;
}

/* Inline, minimal stats row */
.stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.stats-inline .stat {
  color: #274560;
  font-size: 14px;
}

.stats-inline .stat strong {
  color: #1f7ae0;
  font-weight: 700;
}

.stats-inline .stat+.stat::before {
  content: "•";
  color: #9fb3c8;
  margin: 0 6px 0 2px;
}

/* Reset old card-like styles to remove backgrounds */
.stat-grid,
.stat-item,
.category-stats,
.cat-list,
.cat-list li {
  all: unset;
}

/* Preserve list semantics when needed */
.stats-inline {
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 980px) {
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .stats-inline {
    gap: 10px;
  }
}

.plugin-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 14px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(77, 166, 255, 0.10);
  min-height: 80px;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}

.plugin-card:hover {
  border-color: rgba(77, 166, 255, 0.38);
  box-shadow: 0 14px 24px rgba(61, 148, 239, 0.14);
  transform: translateY(-1px);
  background: #eaf3ff;
}

/* 右侧箭头采用独立元素，关闭伪元素箭头 */
.plugin-card::after {
  content: none;
}

.card-arrow {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 0.1px solid rgba(77, 166, 255, 0.35);
  color: var(--primary-700);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 6px rgba(61, 148, 239, 0.12);
}

/* Ensure arrow is vertically centered inside all plugin cards */
.plugin-card .card-arrow {
  align-self: center;
}

.plugin-card:hover .card-arrow {
  background: #2d7bd9;
  color: #fff;
  border-color: transparent;
  transform: none;
}

.plugin-left {
  display: grid;
  align-items: center;
  justify-items: center;
}

.badge {
  background: #2d7bd9;
  color: #fff;
  border-radius: 999px;
  font-size: var(--fs-small);
  padding: 2px 8px;
}

.badge.secondary {
  background: #6b7c8f;
}

/* Enlarge badges in install cards specifically */
.plugin-left .badge {
  font-size: clamp(12px, 1.4vw, 14px);
  padding: 3px 10px;
}

/* 右上角角标（推荐/海外） */
.corner-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #2d7bd9;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(10px, 1.2vw, 12px);
  padding: 1px 6px;
  box-shadow: 0 2px 6px rgba(45, 123, 217, 0.12);
}

.corner-badge.secondary {
  background: #6b7c8f;
  box-shadow: 0 2px 6px rgba(107, 124, 143, 0.12);
}

.browser-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #2d7bd9;
  background: transparent;
  border-radius: 12px;
}

.browser-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.browser-icon.chrome {
  color: #1976d2;
}

.plugin-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.plugin-right .title {
  font-weight: 700;
  color: #23354a;
  font-size: clamp(15px, 1.5vw, 15px);
  line-height: 1.2;
  margin: 0;
}

.plugin-right .subtitle {
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 14px);
  line-height: 1.2;
  margin: 0;
}

/* 默认/悬停文案切换 */
.plugin-right .title .hover,
.plugin-right .subtitle .hover {
  display: none;
}

.plugin-card:hover .plugin-right .title .hover,
.plugin-card:hover .plugin-right .subtitle .hover {
  display: inline;
}

.plugin-card:hover .plugin-right .title .default,
.plugin-card:hover .plugin-right .subtitle .default {
  display: none;
}

/* Hover accents inside card */
.plugin-card:hover .plugin-right .title {
  color: #155fb8;
}

.plugin-card:hover .browser-icon {
  background: transparent;
}

/* 桌面端避免标题换行，移动端允许换行 */
@media (min-width: 980px) {
  .plugin-right .title {
    white-space: nowrap;
  }

  .plugin-right .subtitle {
    white-space: nowrap;
  }
}

/* Manual download card: allow wrapping and increase height */
.plugin-card.manual-card {
  min-height: 128px;
  padding: 14px 18px;
}

.plugin-card.manual-card .plugin-right .title,
.plugin-card.manual-card .plugin-right .subtitle {
  white-space: normal;
}

.plugin-side {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f7fbff;
  box-shadow: inset 0 0 0 1px rgba(77, 166, 255, 0.08);
  min-height: 72px;
  display: flex;
}

.side-inner {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  text-align: left;
  gap: 10px 12px;
  padding: 14px 16px;
  width: 100%;
}

.side-badge {
  grid-column: 1 / -1;
  justify-self: start;
  background: rgba(45, 123, 217, 0.12);
  color: var(--primary-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
}

.side-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--primary-700);
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(77, 166, 255, 0.25);
}

.side-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.side-title {
  grid-column: 2;
  font-weight: 700;
  color: #274560;
  font-size: clamp(18px, 2.1vw, 20px);
}

.side-sub {
  grid-column: 2;
  color: var(--muted);
  font-size: clamp(12px, 1.3vw, 13px);
}

.side-btn {
  grid-column: 1 / -1;
  width: 100%;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
}

/* Campus Ambassador paragraph line spacing */
#ambassador p {
  line-height: 1.8;
}

@media (max-width: 980px) {
  .plugin-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  /* Reset app guide grid to single column on small screens */
  #download .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-actions {
    grid-template-columns: 1fr;
  }
}

/* Modal & Login */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.show {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 48, 0.38);
  backdrop-filter: blur(2px);
}

.modal-dialog {
  position: relative;
  width: min(560px, 92%);
  margin: 0;
  background: #eaf4ff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(61, 148, 239, 0.22);
  padding: 20px 20px 22px;
}

/* Narrower width for login modal to reduce side whitespace */
#loginModal .modal-dialog {
  width: min(420px, 92%);
  padding: 16px 16px 18px;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: none;
  color: #2d7bd9;
  font-size: 24px;
  cursor: pointer;
}

.modal-title {
  text-align: center;
  color: #2d7bd9;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 2px 0 12px;
}

#promptModal .modal-backdrop {
  background: rgba(12, 20, 28, 0.42);
  backdrop-filter: blur(3px);
}

#promptModal .modal-dialog {
  width: min(520px, 92%);
  background: #ffffff;
  border: 1px solid #e7eef8;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.22);
  padding: 22px 22px 24px;
}

#promptModal .modal-title {
  color: var(--primary-700);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 20px);
  letter-spacing: 0.2px;
  margin: 2px 0 10px;
}

#promptModal .prompt-message {
  font-size: 14px;
  color: #3a4a5e;
  line-height: 1.7;
  margin-top: 4px;
}

#promptModal .modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

#promptModal .modal-actions .btn {
  min-width: 98px;
  height: 36px;
  border-radius: 10px;
}

#promptModal .btn-ghost {
  background: #f4f7fb;
  color: #2a3c52;
  border-color: #d8e3ef;
}

#promptModal .btn-ghost:hover,
#promptModal .btn-ghost:focus-visible {
  background: #e9f0f7;
  border-color: #cfd9e6;
  color: #1f2e42;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(61, 148, 239, 0.12);
}

#promptModal .btn-ghost:active {
  transform: none;
  box-shadow: none;
}

#promptModal .btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  border-color: var(--primary);
}

#promptModal .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#promptModal .modal-close {
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #6078a0;
  display: grid;
  place-items: center;
  transition: none;
}

#promptModal .modal-close:hover {
  background: transparent;
}

/* Boards Stats Modal */
#boardsStatsModal .modal-dialog {
  width: min(1260px, 98%);
  max-height: 86vh;
  overflow: hidden;
  /* 限制内容高度，避免外溢 */
  padding: 8px 8px 10px;
}

#boardsStatsModal .boards-stats-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  max-height: calc(86vh - 92px);
  /* 仅纵向滚动，避免横向滚动条出现 */
  overflow-y: auto;
  overflow-x: hidden;
}

#boardsStatsModal .groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#boardsStatsModal .group {
  background: #ffffff;
  border: 1px solid #e7eef8;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

#boardsStatsModal .group-title {
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  margin: 2px 0 10px;
}

/* 副标题：置于标题容器左上角，文案来源于 JSON */
#boardsStatsModal .boards-subtitle {
  color: #8ea6c1;
  font-size: 13px;
  margin: 0;
  /* 左上角对齐，无额外间距 */
  position: absolute;
  /* 固定到窗体（标题容器）左上角 */
  left: 10px;
  top: 10px;
  display: inline-block;
  text-align: left;
  white-space: nowrap;
}

/* 关闭按钮（复用通用 .modal-close），在此弹窗中覆盖定位 */
#boardsStatsModal .modal-close {
  right: 10px;
  top: 10px;
  z-index: 20;
  /* 确保不被标题/副标题层遮挡，可点击 */
}

#boardsStatsModal .board-list .name {
  font-size: 14px;
}

/* 列表项更紧凑 */
#boardsStatsModal .board-list li {
  padding: 3px 6px 3px 36px;
  line-height: 1.5;
}

#boardsStatsModal .board-list li::before {
  left: 10px;
  font-size: 10px;
  padding: 1px 5px;
}

/* 弹框内企业名链接使用标准链接颜色 */
#boardsStatsModal .board-list .name a {
  color: #2d3f55;
  /* 默认黑灰色，与列表名称一致 */
  text-decoration: none;
  /* 链接内容同样省略处理，避免撑爆容器 */
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s ease-in-out, text-decoration-color .15s ease-in-out;
}

#boardsStatsModal .board-list .name a:hover,
#boardsStatsModal .board-list .name a:focus-visible {
  color: #0969da;
  /* 悬停/聚焦时体现为可点击链接 */
  text-decoration: underline;
}

/* 列表风格统一复用首页 .board-list，避免样式冲突 */
@media (max-width: 800px) {
  #boardsStatsModal .groups {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  #boardsStatsModal .groups {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* iOS help modal typography and layout */
.help-body .help-intro {
  margin-bottom: 14px;
  color: #4a6075;
  line-height: 1.75;
}

.help-body .help-subtitle {
  margin: 14px 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.help-body .help-steps {
  margin: 0 0 12px;
  padding-left: 16px;
  border-left: 3px solid #dbeafe;
}

.help-body .help-steps li {
  margin-bottom: 10px;
}

.help-body .help-steps li strong {
  display: block;
  margin-bottom: 4px;
  color: #2d7bd9;
}

.help-body .help-note {
  color: #8ea6c1;
  font-size: 13px;
}

.help-body a {
  color: #2d7bd9;
  text-decoration: none;
}

.help-body a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.help-body code {
  background: #f2f8ff;
  border: 1px solid #dbeafe;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* QR Modal (compact card) */
.qr-dialog {
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Purchase Notice Modal (插件/选岗复用) */
#pluginNoticeModal .plugin-notice-dialog {
  width: min(760px, 94%);
}

#pluginNoticeModal .notice-body {
  color: #4a6075;
  line-height: 1.8;
  background: #f7fbff;
  border: 1px solid #dbeafe;
  padding: 14px 16px;
  border-radius: 10px;
}

#pluginNoticeModal .notice-body .notice-list {
  padding-left: 18px;
}

#pluginNoticeModal .notice-body .notice-list li {
  margin-bottom: 10px;
}

#pluginNoticeModal .notice-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.qr-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 12px 16px;
  background: #f2f8ff;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(61, 148, 239, 0.18);
  overflow: visible;
}

/* Todo List Modal */
.todo-dialog {
  width: min(720px, 94%);
  padding: 10px 10px 11px;
}

.todo-header {
  border-bottom: 1px solid #dbeafe;
  padding-bottom: 4px;
  padding-right: 4px;
}

.todo-list-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 3px;
  background: #fafafa;
  border-radius: 10px;
}

/* 通用模态框头部行与动作区（移除内联样式统一到此处） */
.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -6px 0 8px;
}

.todo-subtitle {
  font-size: 14px;
  color: #909399;
}

.jobs-refresh-btn {
  font-size: 13px;
  color: #0969da;
  text-decoration: none;
}

.jobs-refresh-btn:hover,
.jobs-refresh-btn:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prompt-message {
  font-size: 14px;
  color: #606266;
  line-height: 1.6;
}

/* Job Detail */
.job-header {
  margin-bottom: 24px;
  padding-left: 12px;
}

.job-updated {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.job-updated .icon-clock {
  font-size: 14px;
}

.job-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 800;
  color: #0f172a;
}

.job-salary {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
  margin: 6px 0 10px;
}

.job-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.job-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 12px;
  align-items: start;
}

.job-section {
  margin: 16px 0 10px;
  padding-left: 10px;
  border-left: 3px solid var(--primary-600);
  color: #23354a;
  font-size: 16px;
}

/* 详情页：顶部标签行与圆角标签样式 */
.job-tags-line {
  margin: 8px 0 10px;
  color: #374151;
  font-size: 15px;
  font-family: "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

/* 工作地点等简短说明的文本块，与后续标题留白 */
.job-desc {
  margin: 8px 0 18px;
}

.chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 14px;
  line-height: 1;
}

.recruit-num {
  color: #2563eb;
  font-weight: 600;
}

.job-list {
  margin: 8px 0 16px;
  padding-left: 18px;
}

.job-content p {
  color: #334155;
  line-height: 1.8;
}

.job-list li {
  margin: 6px 0;
}

.job-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.job-actions .btn-primary {
  height: 38px;
  padding: 0 14px;
  min-width: 100px;
  border-radius: 999px;
  font-size: 16px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.job-actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.34);
}

.company-card .company-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.company-card .company-title {
  margin: 0;
}

.company-main {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  gap: 14px 14px;
  align-items: center;
}

.company-logo img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #f3f6fb;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(77, 166, 255, 0.14);
}

/* 未设置 src 的公司头像在页面初始阶段隐藏，避免显示占位文字或图标闪现 */
.company-logo img:not([src]),
.company-logo img[src=""] {
  display: none !important;
}

.company-name {
  font-weight: 700;
  font-size: 17px;
  margin: 6px 0 6px;
}

.company-card .company-name a {
  color: #2d3f55;
  text-decoration: none;
  display: inline;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  transition: color .15s ease-in-out, text-decoration-color .15s ease-in-out;
}

.company-card .company-name a:hover,
.company-card .company-name a:focus-visible {
  color: #0969da;
  text-decoration: underline;
}

.company-stats .hot {
  color: #d93025;
  font-weight: 700;
}

.company-tags {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  .job-grid {
    grid-template-columns: 1fr;
  }
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
}

.qr-content {
  display: grid;
  place-items: center;
  gap: 5px;
}

.qr-image {
  width: clamp(190px, 34vw, 240px);
  height: clamp(190px, 34vw, 240px);
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #cfe0f2;
  box-shadow: 0 10px 22px rgba(61, 148, 239, 0.12);
  background: #fff;
}

.qr-tip {
  color: #274560;
  font-size: clamp(15px, 1.9vw, 17px);
  font-weight: 700;
  text-align: center;
  white-space: pre-line;
}

.qr-tip .em {
  color: var(--primary-700);
  font-weight: 700;
}

/* QR modal sub tip */
.qr-subtip {
  margin-top: 6px;
  color: #5f738b;
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
}

.qr-subtip .em {
  color: #2d7bd9;
  font-weight: 600;
}

/* Hide subtip when QR modal is opened from ambassador details */
.modal.no-subtip .qr-subtip {
  display: none;
}

/* Close button in card top-right */
.close-top {
  position: absolute;
  right: -12px;
  top: -12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2d7bd9;
  border: 2px solid #ffffff;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(45, 123, 217, 0.22);
  font-size: 16px;
  line-height: 1;
}

.close-top:hover {
  background: #1f6bca;
}

.close-top:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Footer QR image */
.qrcode-img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 1px dashed #324257;
  box-shadow: inset 0 0 0 1px rgba(77, 166, 255, 0.18);
  object-fit: contain;
  display: block;
  background: #fff;
}

.login-form {
  display: grid;
  gap: 10px;
  width: min(340px, 88%);
  margin: 0 auto;
}

.form-label {
  color: #274560;
  font-size: var(--fs-body);
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfe0f2;
  border-radius: 12px;
  background: #fff;
  font-size: var(--fs-body);
}

.input:focus {
  outline: none;
  border-color: #8fb9ff;
  box-shadow: 0 0 0 3px rgba(143, 185, 255, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
}

.get-code {
  border-color: #bcd7ff;
  background: #f1f7ff;
  color: #2d7bd9;
}

/* Avoid default focus/active outline that may render as dark circle */
.get-code:focus {
  outline: none;
  box-shadow: none;
}

.get-code:active {
  box-shadow: none;
}

.get-code[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #274560;
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0;
}

.consent a {
  color: #2d7bd9;
  text-decoration: none;
}

.consent-text {
  flex: 1;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-full {
  width: 100%;
  border-radius: 12px;
  font-size: 14px;
  padding: 10px 14px;
}

/* Header login button: slightly smaller height */
#loginTrigger {
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 8px;
}

.form-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.form-tip {
  min-height: 20px;
  font-size: 12px;
  color: #c33;
  text-align: center;
  background: #fde8e8;
  border: 1px solid #f5c2c2;
  border-radius: 8px;
  padding: 6px 10px;
}

.form-tip:empty {
  display: none;
}

@media (max-width: 520px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Newbie guide feature switching active state */
#plugin .guide-actions .btn.active {
  background: linear-gradient(180deg, #eef6ff, #e5f0ff);
  border-color: #9dc5ff;
  color: #0b5fcc;
}

/* Dynamic feature copy spacing */
#guideFeature h4 {
  margin-top: 8px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: clamp(16px, 2.2vw, 20px);
}

#guideFeature .muted {
  line-height: 1.85;
  font-size: clamp(15px, 1.8vw, 17px);
}

/* Hide dynamic title to avoid duplication with buttons */
#guideFeatureTitle {
  display: none;
}

/* Plugin intro typography aligned with newbie guide */
#pluginIntro .bullets {
  line-height: 1.85;
  font-size: clamp(15px, 1.8vw, 17px);
  gap: 10px;
}

#pluginIntro .intro-actions {
  margin-top: 16px;
  justify-items: center;
}

/* 插件介绍区主下载按钮：加大尺寸并采用胶囊风格 */
#extDownloadCta {
  padding: 12px 24px;
  font-size: clamp(16px, 2.4vw, 18px);
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(61, 148, 239, 0.18);
  background: linear-gradient(180deg, #5ea9ff, #2d7bd9);
}

#extDownloadCta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(61, 148, 239, 0.22);
  background: linear-gradient(180deg, #2d7bd9, #1f5fb8);
}

/* Boards 区域顶部统计条（岗位统计 + 广告 + 近一周榜单通用） */
.boards-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f8ff 100%);
  border: 1px solid #e4e8f1;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(9, 105, 218, 0.08);
  margin-bottom: 12px;
  position: relative;
}

.boards-stats .stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: #222;
  position: relative;
  padding: 0;
}

.boards-stats .stat .label {
  color: #303133;
  font-size: 13px
}

.boards-stats .stat .count {
  color: #0969da;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.2px;
}

.boards-stats .stat .unit {
  color: #303133;
}

@media (max-width: 640px) {
  .boards-stats {
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(9, 105, 218, 0.06);
  }

  .boards-stats .stat {
    font-size: 16px;
    padding: 0 4px;
  }

  .boards-stats .last-updated {
    position: static;
    transform: none;
    width: 100%;
    text-align: right;
  }

  .boards-stats .stats-note {
    position: static;
    transform: none;
    width: 100%;
    text-align: left;
  }
}

#boardsStatsModal .boards-header {
  position: relative;
  text-align: center;
  margin: 2px 0 8px;
  pointer-events: none;
}

/* Modal job action buttons hover */
.modal .go-apply-btn {
  transition: all .15s ease;
  will-change: transform;
}

.modal .go-apply-btn:hover {
  background: #3a8ee6 !important;
  border-color: #3a8ee6 !important;
  box-shadow: 0 2px 8px rgba(58, 142, 230, .35);
  transform: translateY(-1px);
}

.modal .go-detail-btn {
  transition: all .15s ease;
  will-change: transform;
}

.modal .go-detail-btn:hover {
  background: #3a8ee6 !important;
  border-color: #3a8ee6 !important;
  box-shadow: 0 2px 8px rgba(58, 142, 230, .35);
  transform: translateY(-1px);
}

/* Timeline Detail Modal */
#timelineDetailModal .timeline-dialog {
  width: min(96vw, 980px);
  max-width: 980px;
}

#timelineDetailModal .timeline-body {
  padding: 8px 12px 16px;
}

/* 图片样式保留（若需要切换回图片时可用） */
#timelineDetailModal .timeline-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(77, 166, 255, 0.15);
}

/* 富文本时间线布局 */
#timelineDetailModal .timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1024px) {
  #timelineDetailModal .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  #timelineDetailModal .timeline-grid {
    grid-template-columns: 1fr;
  }
}

#timelineDetailModal .timeline-item {
  background: linear-gradient(180deg, rgba(64, 158, 255, 0.06), rgba(64, 158, 255, 0.02));
  border: 1px solid rgba(64, 158, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(64, 158, 255, 0.08);
}

#timelineDetailModal .phase {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

#timelineDetailModal .month-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 18px;
  color: #3a8ee6;
  background: #eaf3ff;
  border: 1px solid #bcd9ff;
  border-radius: 9px;
  padding: 0 8px;
  margin-bottom: 8px;
}

#timelineDetailModal .desc {
  font-size: 13px;
  color: #606266;
  line-height: 1.6;
}

/* Toast 提示：统一全站提示样式 */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background: #fff;
  border: 1px solid #dcdfe6;
  border-left: 4px solid var(--primary-500, #409EFF);
  color: #303133;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  min-width: 240px;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.success {
  border-left-color: var(--success-500, #67C23A);
}

.toast.error {
  border-left-color: var(--danger-500, #F56C6C);
}

.toast.info {
  border-left-color: var(--primary-500, #409EFF);
}

/* VIP 剩余次数高亮 */
.vip-remain-num {
  color: #d93025;
  font-weight: 600;
}

/* 右侧“上次更新时间”文案，样式参考弹窗副标题 */
.boards-stats .last-updated {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8ea6c1;
  font-size: 13px;
  white-space: nowrap;
}

/* 左侧提示文案，与右侧一致风格 */
.boards-stats .stats-note {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8ea6c1;
  font-size: 13px;
  white-space: nowrap;
}

/* 包裹统计项，保持居中布局 */
.boards-stats .stats-items {
  display: inline-flex;
  align-items: center;
  gap: 56px;
}