/* ==========================================================================
   yt_dock.css —— 手机端底部导航（日报 / 周报 / 月报 / 每日必看）
   三个方案：A 浮岛玻璃胶囊  B 图标 TabBar  C 磁吸 Dock
   ========================================================================== */

:root {
  --dk-brand: #E4600C;
  --dk-brand-2: #C2480A;
  --dk-ink: #2E1200;
  --dk-ink-2: #7A5233;
  --dk-ink-3: #A8866A;
}

/* 页面为底部导航让出空间 */
html.dk-on body {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

.dk-root {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.dk-root > * { pointer-events: auto; }

/* ==========================================================================
   方案 A —— 浮岛玻璃胶囊
   ========================================================================== */
.dkA {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  height: 58px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 999px;
  /* 2026-10-29 v13：半透明玻璃在内容滚动时透出花花绿绿，看着"脏"；
     改成近乎实心的暖白 + 一圈极细描边，边界清楚、滚动时稳定 */
  background: rgba(255, 252, 247, .965);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(240, 219, 197, .9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .6),
    0 1px 2px rgba(120, 70, 20, .06),
    0 10px 26px -10px rgba(105, 55, 15, .34);
}

/* 底部暖光 v13 去掉：奶油底上那层橙雾会显得"脏"，靠投影分层就够了 */
.dkA::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -4px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(196, 96, 30, .16) 0%, rgba(196, 96, 30, 0) 74%);
  filter: blur(5px);
  z-index: -1;
  pointer-events: none;
}

.dkA .dk-thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / var(--n, 4));
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, #FF9C52 0%, #E4600C 54%, #BC450B 100%);
  box-shadow:
    0 3px 9px -1px rgba(196, 72, 10, .42),
    inset 0 1px 0 rgba(255, 255, 255, .46),
    inset 0 -1px 0 rgba(120, 40, 0, .16);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .42s cubic-bezier(.34, 1.56, .5, 1);
  will-change: transform;
}

/* 切换瞬间一道反光扫过滑块 */
.dkA .dk-thumb::before {
  content: "";
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  width: 46%;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .48) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%);
  animation: dkGlint 4.8s ease-in-out 1.6s infinite;
}

.dkA .dk-t {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-width: 0;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  font: inherit;
  color: #5F3D22;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .28s ease;
}

.dkA .dk-t svg {
  width: 18.5px;
  height: 18.5px;
  stroke-width: 2;
  opacity: .9;
  transition: opacity .28s ease, transform .34s cubic-bezier(.34, 1.56, .5, 1);
}

.dkA .dk-t .lb {
  font-size: 11.2px;
  font-weight: 700;
  letter-spacing: .1px;
  white-space: nowrap;
}

.dkA .dk-t[aria-selected="true"] { color: #fff; }
.dkA .dk-t[aria-selected="true"] svg { opacity: 1; transform: translateY(-1px) scale(1.06); }

/* ==========================================================================
   方案 B —— 图标 TabBar + 弧形指示器
   ========================================================================== */
.dk-root.dkB-wrap {
  padding: 0;
}

.dkB {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 62px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
  background: rgba(255, 251, 246, .88);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-radius: 22px 22px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .98),
    0 -1px 0 rgba(228, 96, 12, .10),
    0 -12px 32px -18px rgba(120, 70, 20, .40);
}

.dkB .dk-t {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--dk-ink-3);
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: color .26s ease;
}

.dkB .dk-t svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.9;
  transition: transform .40s cubic-bezier(.34, 1.56, .5, 1);
}

.dkB .dk-t .lb { font-size: 10.5px; font-weight: 700; letter-spacing: .2px; }

.dkB .dk-t[aria-selected="true"] { color: var(--dk-brand-2); }
.dkB .dk-t[aria-selected="true"] svg { transform: translateY(-2px) scale(1.08); }

/* 弧形指示：滑块底部一团橙色光 + 上方一道拱形高光 */
.dkB .dk-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #FFAC66, #E4600C 50%, #C2480A);
  box-shadow: 0 2px 10px rgba(228, 96, 12, .55);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .42s cubic-bezier(.34, 1.56, .5, 1);
}

.dkB .dk-halo {
  position: absolute;
  top: -14px;
  width: 76px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 150, 70, .34) 0%, rgba(255, 150, 70, 0) 70%);
  transform: translateX(calc(var(--i, 0) * 100% - 50% + 10%));
  transition: transform .42s cubic-bezier(.34, 1.56, .5, 1);
  pointer-events: none;
  filter: blur(2px);
}

/* ==========================================================================
   方案 C —— 磁吸 Dock（选中项放大并展开文字）
   ========================================================================== */
.dkC {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 7px;
  border-radius: 24px;
  background: rgba(46, 24, 8, .82);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 16px 40px -14px rgba(0, 0, 0, .60);
}

.dkC .dk-t {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 17px;
  background: rgba(255, 255, 255, .06);
  font: inherit;
  color: rgba(255, 255, 255, .62);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all .40s cubic-bezier(.34, 1.56, .5, 1);
  overflow: hidden;
  white-space: nowrap;
}

.dkC .dk-t svg { width: 19px; height: 19px; flex: 0 0 auto; stroke-width: 1.9; }

.dkC .dk-t .lb {
  max-width: 0;
  margin-left: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  opacity: 0;
  overflow: hidden;
  transition: max-width .40s cubic-bezier(.34, 1.56, .5, 1),
              opacity .30s ease, margin-left .40s cubic-bezier(.34, 1.56, .5, 1);
}

.dkC .dk-t[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(150deg, #FF9648 0%, #E4600C 56%, #B9430A 100%);
  box-shadow: 0 6px 18px -6px rgba(228, 96, 12, .80), inset 0 1px 0 rgba(255, 255, 255, .34);
  padding: 0 15px;
}

.dkC .dk-t[aria-selected="true"] .lb {
  max-width: 84px;
  margin-left: 6px;
  opacity: 1;
}

/* ==========================================================================
   动效减弱
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .dkA .dk-thumb,
  .dkA .dk-t svg,
  .dkB .dk-blob,
  .dkB .dk-halo,
  .dkC .dk-t,
  .dkC .dk-t .lb { transition: none !important; }
  .dkA .dk-thumb::before { animation: none; opacity: 0; }
}

@keyframes dkGlint {
  0%, 74%, 100% { transform: translateX(-140%); }
  87%           { transform: translateX(340%); }
}

/* 极光玻璃通用：5 项、弹簧过冲、镜面高光、折射底雾、反光扫过 */
.dk-root{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}
.dkA{
  border:1px solid rgba(255,255,255,.92);
  background:rgba(238,244,255,.66);
  -webkit-backdrop-filter:blur(18px) saturate(180%); backdrop-filter:blur(18px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(255,255,255,.62),
    inset 0 0 0 1px rgba(255,255,255,.38),
    inset 0 2px 8px rgba(70,105,200,.15),
    0 1px 2px rgba(50,80,170,.08),
    0 8px 20px -8px rgba(50,80,190,.30),
    0 16px 34px -18px rgba(60,90,200,.50);
}
.dkA::before{
  content:"";position:absolute;inset:0;z-index:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(104deg,
    rgba(255,255,255,.78) 0%,rgba(255,255,255,.14) 26%,
    rgba(255,255,255,0) 52%,rgba(255,255,255,.30) 100%);
}
.dkA::after{
  inset:-16px -26px;height:auto;bottom:auto;z-index:0;filter:none;border-radius:999px;
  background:
    radial-gradient(58% 72% at 24% 50%,rgba(94,205,255,.30),transparent 72%),
    radial-gradient(52% 72% at 76% 50%,rgba(168,124,255,.28),transparent 72%),
    radial-gradient(40% 60% at 52% 100%,rgba(255,158,206,.18),transparent 74%);
}
.dkA .dk-thumb{
  z-index:1;
  background:linear-gradient(135deg,#7C93FF 0%,#4A6CF7 50%,#2B44C8 100%);
  box-shadow:0 4px 12px -2px rgba(43,68,200,.52),0 1px 2px rgba(30,50,140,.22),
    inset 0 1px 0 rgba(255,255,255,.52),inset 0 -1px 0 rgba(20,40,120,.30);
  transition:transform .40s cubic-bezier(.32,1.62,.52,1);
}
.dkA .dk-thumb::before{
  background:linear-gradient(100deg,
    rgba(255,255,255,0) 0%,rgba(255,255,255,.48) 50%,rgba(255,255,255,0) 100%);
}
.dkA .dk-t{color:#6B7BA8}
.dkA .dk-t[aria-selected="true"]{color:#fff;text-shadow:0 1px 2px rgba(20,40,120,.30)}
.dkA .dk-t[aria-selected="true"] svg{opacity:1;transform:translateY(-1px) scale(1.06)}

/* U1 · 极光玻璃浮岛 290px（按 boss UI 标准：宁可小不要满） */
.dkA{width:290px;max-width:290px;height:52px;padding:4px;border-radius:999px}
.dkA .dk-thumb{top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/var(--n, 4));border-radius:999px}
.dkA .dk-t{height:44px;gap:2px}
.dkA .dk-t svg{width:16.5px;height:16.5px;stroke-width:2}
.dkA .dk-t .lb{font-size:10.2px;font-weight:700}
