/* Cookie 同意横幅 —— 与站点现有排版语言保持一致（Geist + Fragment Mono，细边框，无圆角） */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid #e1e1e1;
  padding: 12px 24px;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: #333;
  max-width: 780px;
}

.cookie-banner-text a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Fragment Mono', monospace;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid #1c1c1c;
  background: #fff;
  color: #1c1c1c;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.cookie-btn:hover { background: #1c1c1c; color: #fff; }

.cookie-btn-accept { background: #1c1c1c; color: #fff; }
.cookie-btn-accept:hover { background: #000; border-color: #000; }

/* 已作出选择后，在页脚保留一个可撤回入口。
   刻意不做浮动按钮 —— 页脚文字链接是行业标准做法，不打断浏览。 */
.cookie-settings { cursor: pointer; }
.cookie-settings[hidden] { display: none; }

/* 横幅保持悬浮（fixed）压在实际内容之上 —— 之前让首屏给它让位的做法会把
   整个首屏往上顶，观感不对，已撤掉。改为把横幅本身压薄：
   桌面 82px → 约 66px，移动端 152px → 约 100px。 */
@media (max-width: 768px) {
  .cookie-banner { padding: 10px 14px; }
  .cookie-banner-inner { gap: 10px; }
  .cookie-banner-text { font-size: 11px; line-height: 15px; max-width: none; }
  .cookie-banner-actions { width: 100%; gap: 8px; }
  .cookie-btn { flex: 1; padding: 8px 10px; font-size: 11px; letter-spacing: 1px; }
}
