/* =========================================================
   Cookie 同意提示（风格参考微软隐私提示弹窗）
   站点品牌色 --brand (#3E3EFF)
   层级：横幅 9500，首选项弹窗 9600（低于业务弹窗 9999）
   ========================================================= */

/* ---------- 底部通栏提示（矮条） ---------- */
.cc-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9500;
  pointer-events:none;
}
.cc-banner[hidden]{ display:none; }

.cc-banner-inner{
  pointer-events:auto;
  width:100%;
  background:#fff;
  border-top:1px solid #e5e7eb;
  box-shadow:0 -8px 30px rgba(15,23,42,.10);
  padding:9px 22px;
  display:flex;
  align-items:center;
  gap:16px;
  opacity:0;
  transition:opacity .3s ease;
}
.cc-banner.cc-show .cc-banner-inner{ opacity:1; }
.cc-left{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.cc-right{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:14px;
}

.cc-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.cc-shield{
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:9px;
  background:rgba(62,62,255,.09);
  display:flex;
  align-items:center;
  justify-content:center;
}
.cc-shield svg{ width:20px; height:20px; }
.cc-title-row h4{
  margin:0;
  font-size:17px;
  font-weight:700;
  color:#1f2329;
  letter-spacing:.3px;
}
.cc-desc{
  margin:0;
  font-size:12.5px;
  line-height:1.5;
  color:#5f6672;
}
.cc-links{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.cc-links .cc-dot{ color:#c3c8d0; }
.cc-link{
  background:none;
  border:none;
  padding:0;
  font-size:13px;
  color:#3E3EFF;
  cursor:pointer;
  text-decoration:none;
  font-family:inherit;
}
.cc-link:hover{ text-decoration:underline; color:#2F2FE4; }

.cc-process h5{
  margin:0 0 6px;
  font-size:13.5px;
  font-weight:600;
  color:#1f2329;
}
.cc-process p{
  margin:0;
  font-size:12.5px;
  line-height:1.7;
  color:#6b7280;
}

.cc-btn-row{
  display:flex;
  gap:10px;
}
.cc-btn{
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  padding:9px 22px;
  border-radius:8px;
  transition:all .2s;
  font-family:inherit;
}
.cc-btn-accept{
  background:#3E3EFF;
  color:#fff;
}
.cc-btn-accept:hover{ background:#2F2FE4; box-shadow:0 4px 14px rgba(62,62,255,.35); }
.cc-btn-reject{
  background:#fff;
  color:#3E3EFF;
  border:1px solid #3E3EFF;
}
.cc-btn-reject:hover{ background:rgba(62,62,255,.06); }
.cc-manage{
  display:block;
  white-space:nowrap;
}

/* ---------- 管理首选项弹窗 ---------- */
.cc-modal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:9600;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.cc-modal[hidden]{ display:none; }
.cc-modal-mask{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(3px);
}
.cc-modal-box{
  position:relative;
  background:#fff;
  border-radius:16px;
  width:100%;
  max-width:580px;
  max-height:88vh;
  overflow-y:auto;
  padding:28px 30px;
  box-shadow:0 24px 64px rgba(0,0,0,.22);
  opacity:0;
  transform:scale(.96) translateY(12px);
  transition:opacity .25s ease, transform .25s ease;
}
.cc-modal.cc-show .cc-modal-box{ opacity:1; transform:none; }

.cc-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:32px;
  height:32px;
  border:none;
  border-radius:8px;
  background:#f3f4f6;
  color:#6b7280;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  transition:all .2s;
  z-index:2;
}
.cc-modal-close:hover{ background:rgba(62,62,255,.1); color:#3E3EFF; }

.cc-modal-head h4{
  margin:0 0 8px;
  font-size:19px;
  font-weight:700;
  color:#1f2329;
}
.cc-modal-head p{
  margin:0;
  font-size:13px;
  line-height:1.75;
  color:#5f6672;
}

.cc-pref-list{ margin-top:20px; }
.cc-pref{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 4px;
  border-bottom:1px solid #f0f1f3;
}
.cc-pref:last-child{ border-bottom:none; }
.cc-pref-info{ flex:1; min-width:0; }
.cc-pref-info strong{
  font-size:14px;
  color:#1f2329;
  display:block;
}
.cc-pref-info p{
  font-size:12.5px;
  color:#6b7280;
  line-height:1.6;
  margin:5px 0 0;
}
.cc-badge{
  flex:0 0 auto;
  font-size:11px;
  color:#6b7280;
  background:#f3f4f6;
  padding:3px 10px;
  border-radius:999px;
  white-space:nowrap;
}

/* 开关 */
.cc-switch{
  position:relative;
  display:inline-block;
  width:44px;
  height:24px;
  flex:0 0 44px;
}
.cc-switch input{ opacity:0; width:0; height:0; position:absolute; }
.cc-slider{
  position:absolute;
  cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background:#d1d5db;
  border-radius:999px;
  transition:background .2s;
}
.cc-slider::before{
  content:"";
  position:absolute;
  height:18px;
  width:18px;
  left:3px;
  top:3px;
  background:#fff;
  border-radius:50%;
  transition:transform .2s;
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}
.cc-switch input:checked + .cc-slider{ background:#3E3EFF; }
.cc-switch input:checked + .cc-slider::before{ transform:translateX(20px); }
.cc-switch input:disabled + .cc-slider{ opacity:.55; cursor:not-allowed; }

.cc-modal-foot{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid #f0f1f3;
  flex-wrap:wrap;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 820px){
  .cc-banner-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
    padding:12px 16px;
    max-height:60vh;
    overflow-y:auto;
  }
  .cc-left{ width:100%; }
  .cc-right{ width:100%; }
  .cc-btn-row{ flex-wrap:wrap; }
  .cc-modal-box{ padding:22px 20px; }
  .cc-modal-foot{ justify-content:stretch; }
  .cc-modal-foot .cc-btn{ flex:1; text-align:center; }
}
