/* ==========================================================================
   超市播音控制系统 大声发 - 前台门户样式
   阚荣浩 2026-10-27
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }

.bs-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- 顶部导航 ---------------- */
.bs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* 阚荣浩 2026-11-21：去掉 backdrop-filter。
     sticky + backdrop-filter 在部分 Chrome 版本会导致「命中测试坐标错位」：
     鼠标看着停在顶栏按钮上，实际命中的是按钮下方的宣传图（那张图在 home-ext.js
     里被设了 cursor:zoom-in），于是光标变放大图标、点击触发看大图而不是跳转；
     改窗口宽度 / 开 F12 触发重排重绘后又恢复正常。去掉滤镜用近纯白底替代，
     视觉几乎无差别，但从根上消除了错位。 */
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid #eef0f2;
}

.bs-header-inner {
  display: flex;
  align-items: center;
  height: 66px;
}

.bs-logo {
  display: flex;
  align-items: center;
  font-size: 19px;
  font-weight: 700;
  color: #17233d;
  letter-spacing: .5px;
}

.bs-logo-icon {
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, #16baaa, #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.bs-nav {
  display: flex;
  align-items: center;
  margin-left: 46px;
  gap: 30px;
  font-size: 14px;
  color: #5b6472;
}

.bs-nav a:hover { color: #16baaa; }

.bs-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  /* 阚荣浩 2026-11-21：顶栏按钮单独提到自己容器内的最上层，
     配合 .bs-header 去掉 backdrop-filter，双保险防止命中落到下方的宣传图上 */
  position: relative;
  z-index: 1;
}
.bs-header-right .bs-btn { position: relative; z-index: 1; cursor: pointer; }

/* ---------------- 按钮 ---------------- */
.bs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.bs-btn-primary {
  background: linear-gradient(135deg, #16baaa, #0d9488);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 186, 170, .22);
}

.bs-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(22, 186, 170, .3); }

.bs-btn-ghost {
  background: #fff;
  border-color: #dcdfe6;
  color: #4a5568;
}

.bs-btn-ghost:hover { border-color: #16baaa; color: #16baaa; }

.bs-btn-lg { height: 48px; padding: 0 32px; font-size: 15px; }
.bs-btn-block { width: 100%; }
.bs-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------------- Hero ---------------- */
.bs-hero {
  padding: 84px 0 90px;
  background:
    radial-gradient(900px 420px at 12% -10%, #e7fbf8 0%, rgba(231, 251, 248, 0) 62%),
    radial-gradient(800px 400px at 92% 0%, #eef3ff 0%, rgba(238, 243, 255, 0) 60%),
    #fff;
}

.bs-hero-inner {
  display: grid;
  /* 阚荣浩 2026-11-19：右侧换成真实截图后给它多一点宽度，界面文字才看得清 */
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.bs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  background: #e8f8f5;
  color: #0d9488;
  font-size: 13px;
  margin-bottom: 22px;
}

.bs-hero h1 {
  font-size: 44px;
  line-height: 1.28;
  color: #12192b;
  letter-spacing: -.5px;
  font-weight: 700;
}

.bs-hero h1 em {
  font-style: normal;
  color: #16baaa;
}

.bs-hero-desc {
  margin-top: 20px;
  font-size: 16px;
  color: #5b6472;
  max-width: 520px;
}

.bs-hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.bs-hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: #98a2b3;
}

/* Hero 右侧：播放面板模拟 */
.bs-panel {
  background: #fff;
  border: 1px solid #edf0f3;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(23, 35, 61, .09);
  overflow: hidden;
}

.bs-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #fafbfc;
  border-bottom: 1px solid #eef0f3;
  font-size: 13px;
  color: #8b95a5;
}

.bs-dot { width: 9px; height: 9px; border-radius: 50%; background: #e4e7eb; }
.bs-dot.red { background: #ff7875; }
.bs-dot.yellow { background: #ffc53d; }
.bs-dot.green { background: #52c41a; }

.bs-panel-body { padding: 20px 18px 22px; }

.bs-panel-label {
  font-size: 12px;
  color: #98a2b3;
  margin-bottom: 8px;
}

.bs-now {
  background: #f2fbfa;
  border: 1px solid #c8ece7;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.bs-now-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #0d9488;
  margin-bottom: 6px;
}

.bs-now-text {
  font-size: 14px;
  color: #1f2937;
  line-height: 1.6;
}

.bs-queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #eef0f3;
  font-size: 13px;
  color: #4a5568;
}

.bs-queue-item > span:first-child {
  flex: 1;
  min-width: 0;
}

.bs-queue-item:last-child { border-bottom: 0; }

.bs-tag {
  flex-shrink: 0;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 9px;
  background: #f2f4f7;
  color: #667085;
}

.bs-tag-fire { background: #ffece8; color: #ff4d4f; }
.bs-tag-urgent { background: #fff7e6; color: #fa8c16; }
.bs-tag-sale { background: #e8f4ff; color: #1677ff; }
.bs-tag-op { background: #e8f8f5; color: #0d9488; }

/* ---------------- 通用区块 ---------------- */
.bs-section { padding: 82px 0; }
.bs-section-grey { background: #fafbfc; }

.bs-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.bs-section-head h2 {
  font-size: 32px;
  color: #12192b;
  letter-spacing: -.3px;
}

.bs-section-head p {
  margin-top: 14px;
  color: #667085;
  font-size: 15px;
}

.bs-grid {
  display: grid;
  gap: 22px;
}

.bs-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bs-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bs-grid-2 { grid-template-columns: repeat(2, 1fr); }

.bs-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 26px 24px;
  transition: all .2s;
}

.bs-card:hover {
  border-color: #c8ece7;
  box-shadow: 0 14px 34px rgba(23, 35, 61, .07);
  transform: translateY(-2px);
}

.bs-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #e8f8f5;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.bs-card h3 {
  font-size: 17px;
  color: #17233d;
  margin-bottom: 8px;
}

.bs-card p {
  color: #667085;
  font-size: 14px;
}

/* 优先级表 */
.bs-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.bs-flow-item {
  flex: 1 1 180px;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  padding: 18px;
}

.bs-flow-item strong {
  display: block;
  font-size: 15px;
  color: #17233d;
  margin-bottom: 6px;
}

.bs-flow-item span { font-size: 13px; color: #667085; }

.bs-flow-arrow {
  align-self: center;
  color: #c8d0da;
  font-size: 18px;
}

/* 价格 */
.bs-price-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.bs-price-card {
  background: #fff;
  /* 阚荣浩 2026-12-05：三张卡统一绿边框（用户要求「免费」和「高性价比」也要边框），
     推荐卡另外用阴影 + 上浮做区分，不再靠边框颜色区分。 */
  border: 1px solid #16baaa;
  border-radius: 16px;
  padding: 32px;
  /* 阚荣浩 2026-12-05：三张卡都要挂角标（免费 / 推荐 / 高性价比），
     原来只有 .highlight 有 relative，另外两张的角标会飞到外层容器上。 */
  position: relative;
}

.bs-price-card.highlight {
  box-shadow: 0 18px 44px rgba(22, 186, 170, .13);
}

.bs-price-flag {
  position: absolute;
  top: -13px;
  left: 30px;
  background: #16baaa;
  color: #fff;
  font-size: 12px;
  height: 26px;
  line-height: 26px;
  padding: 0 12px;
  border-radius: 13px;
}

/* 阚荣浩 2026-12-05：「免 费」角标左右各点一颗小星星，轻微明暗闪烁，显得有活力。
   星星用伪元素做，不占 HTML 结构；两颗错开半个周期，看着像在闪。 */
.bs-price-flag.bs-flag-free::before,
.bs-price-flag.bs-flag-free::after {
  content: "✦";
  display: inline-block;
  font-size: 9px;
  line-height: 1;
  vertical-align: 1px;
  animation: bsFlagTwinkle 2s ease-in-out infinite;
}
.bs-price-flag.bs-flag-free::before { margin-right: 5px; }
.bs-price-flag.bs-flag-free::after { margin-left: 5px; animation-delay: .7s; }

@keyframes bsFlagTwinkle {
  /* 最低透明度不能太低（原来 .4 时右侧那颗几乎看不见，像丢了一颗星星）：
     只做轻微呼吸，任何时刻都清晰可辨。 */
  0%, 100% { opacity: .68; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .bs-price-flag.bs-flag-free::before,
  .bs-price-flag.bs-flag-free::after { animation: none; opacity: .9; transform: none; }
}

/* 阚荣浩 2026-12-05：「高性价比」后面点一个大拇指，表示这档最划算。
   emoji 自带彩色，在绿底上够醒目，不再额外加动画，免得整排角标都在动。 */
.bs-price-flag .bs-flag-like {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  line-height: 1;
  vertical-align: 1px;
}

.bs-price-num {
  font-size: 40px;
  color: #12192b;
  font-weight: 700;
  line-height: 1.1;
}

.bs-price-num small {
  font-size: 15px;
  font-weight: 400;
  color: #98a2b3;
  margin-left: 6px;
}

.bs-price-list {
  margin: 22px 0 26px;
  font-size: 14px;
  color: #4a5568;
}

.bs-price-list li {
  padding: 7px 0 7px 24px;
  position: relative;
}

.bs-price-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16baaa;
  font-weight: 700;
}

.bs-price-list li.off { color: #b6bdc7; }
.bs-price-list li.off:before { content: "×"; color: #d9dde3; }

/* ---------------- 页脚 ---------------- */
.bs-footer {
  background: #12192b;
  color: #96a0b5;
  padding: 44px 0 30px;
  font-size: 13px;
}

.bs-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bs-footer strong { color: #fff; font-size: 15px; }
.bs-footer a:hover { color: #16baaa; }
.bs-footer-bottom { padding-top: 20px; text-align: center; color: #6b7688; }
/* 页脚版权行 / 备案行（2026-11-27 统一：两行同字号体系，备案区独立分层） */
.bs-footer-copy { line-height: 1.8; }
.bs-footer-beian {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 14px;
  font-size: 12px;
  color: #8b96a8;
}
.bs-footer-beian a { color: #8b96a8; text-decoration: none; }
.bs-footer-beian a:hover { color: #16baaa; }
.bs-footer-beian img { opacity: .92; }
/* 登录/注册侧栏：外层已有分隔线，备案行不再重复 */
.bs-auth-brand-foot .bs-footer-beian { border-top: 0; margin-top: 8px; padding-top: 0; }

/* ==========================================================================
   登录 / 注册
   ========================================================================== */
.bs-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(700px 380px at 18% 0%, #e7fbf8 0%, rgba(231, 251, 248, 0) 60%),
    radial-gradient(700px 400px at 88% 100%, #eef3ff 0%, rgba(238, 243, 255, 0) 60%),
    #f7f9fb;
}

.bs-auth-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(23, 35, 61, .1);
  padding: 40px 36px 34px;
}

.bs-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #12192b;
  margin-bottom: 8px;
}

.bs-auth-sub {
  text-align: center;
  color: #98a2b3;
  font-size: 13px;
  margin-bottom: 28px;
}

.bs-field { margin-bottom: 18px; }

.bs-field label {
  display: block;
  font-size: 13px;
  color: #4a5568;
  margin-bottom: 8px;
}

.bs-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.bs-input:focus {
  border-color: #16baaa;
  box-shadow: 0 0 0 3px rgba(22, 186, 170, .12);
}

.bs-input::placeholder { color: #b6bdc7; }

.bs-field-row {
  display: flex;
  gap: 10px;
}

.bs-field-row .bs-input { flex: 1; }

.bs-code-btn {
  height: 44px;
  padding: 0 14px;
  border: 1px solid #16baaa;
  background: #fff;
  color: #0d9488;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}

.bs-code-btn:hover { background: #f2fbfa; }
.bs-code-btn[disabled] { border-color: #dcdfe6; color: #b6bdc7; cursor: not-allowed; background: #fafbfc; }

.bs-auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #667085;
  margin-bottom: 22px;
}

.bs-auth-extra a:hover { color: #16baaa; }

.bs-auth-foot {
  text-align: center;
  font-size: 13px;
  color: #667085;
  margin-top: 22px;
}

.bs-auth-foot a { color: #0d9488; font-weight: 500; }

.bs-alert {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.bs-alert.show { display: block; }
.bs-alert-error { background: #fff2f0; color: #cf1322; border: 1px solid #ffccc7; }
.bs-alert-ok { background: #f6ffed; color: #389e0d; border: 1px solid #b7eb8f; }
.bs-alert-info { background: #e8f8f5; color: #0d9488; border: 1px solid #b7e8e2; }

/* ==========================================================================
   用户中心
   ========================================================================== */
.bs-user-wrap {
  padding: 60px 0 90px;
  background: #f7f9fb;
  min-height: calc(100vh - 66px - 130px);
}

.bs-user-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
}

.bs-user-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 28px;
}

.bs-user-card h3 {
  font-size: 16px;
  color: #17233d;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f2f5;
}

.bs-kv {
  display: flex;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px dashed #f0f2f5;
}

.bs-kv:last-child { border-bottom: 0; }

.bs-kv .k { width: 96px; color: #98a2b3; flex-shrink: 0; }
.bs-kv .v { color: #1f2937; word-break: break-all; }

.bs-status {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.bs-status-ok { background: #e8f8f5; color: #0d9488; }
.bs-status-no { background: #fff2f0; color: #cf1322; }

.bs-notice {
  margin-top: 20px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  color: #ad6800;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.8;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .bs-hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .bs-hero h1 { font-size: 33px; }
  .bs-grid-3, .bs-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .bs-price-wrap, .bs-user-grid { grid-template-columns: 1fr; }
  .bs-nav { display: none; }
}

@media (max-width: 640px) {
  .bs-grid-3, .bs-grid-4, .bs-grid-2 { grid-template-columns: 1fr; }
  /* 标题字号：32px 在 390 宽会把「先免费试用，再按需付费」挤成 11+1 个字，
     最后一个字单独一行很难看（阚荣浩 2026-11-03） */
  .bs-section-head h2 { font-size: 25px; }
  .bs-hero h1 { font-size: 30px; }
  .bs-section-head p { font-size: 14px; }
  /* 页脚链接原本只有 17px 高，手机上很难点中（阚荣浩 2026-11-03） */
  .bs-footer a { display: inline-block; padding: 5px 0; }
  .bs-hero { padding: 56px 0 60px; }
  .bs-section { padding: 56px 0; }
  .bs-auth-card { padding: 30px 22px 26px; }
  .bs-header-right .bs-btn { height: 36px; padding: 0 14px; font-size: 13px; }
}
