/* ============================================================
   全站 3D 页面公共 UI 样式 —— LOGO / 天气时钟 / 顶栏按钮
   ------------------------------------------------------------
   • 逐字取自首页 css/ui.css（第 25-161 行），CSS 变量换成固定值，
     保证任何 3D 页面引入后与首页完全一致。
   • 要在各页面自己的 CSS 之后引入，才能覆盖旧的同名样式。
   • 白色亚克力 3D LOGO = 网站左上角唯一标准（不是大门深蓝金框灯牌）。
   ============================================================ */

.brand-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.logo-3d { width: 168px; height: 46px; perspective: 800px; cursor: pointer; flex: none; }
.logo-3d-inner {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-12deg);
  transition: transform 0.25s ease-out;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.logo-3d:hover .logo-3d-inner { transform: rotateY(-18deg) rotateX(4deg); }
.logo-3d-inner.spinning { animation: logoSpin 1.2s cubic-bezier(0.25, 0.8, 0.35, 1); }
@keyframes logoSpin {
  from { transform: rotateY(-12deg); }
  to   { transform: rotateY(348deg); }
}
.logo-plate-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden;
  border-radius: 8px;
  background: linear-gradient(155deg, #ffffff 0%, #eef3f7 55%, #d9e3ec 100%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -2px 6px rgba(20, 40, 60, 0.18);
}
.logo-plate-front { transform: translateZ(5px); }
.logo-plate-back  { transform: rotateY(180deg) translateZ(5px); }
.logo-plate-edge {
  position: absolute;
  background: linear-gradient(180deg, #9fb2c2 0%, #6f8496 50%, #4e6274 100%);
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.35);
}
.logo-edge-top {
  left: 8px; right: 8px; top: 0; height: 10px;
  transform: rotateX(90deg); transform-origin: top center;
  background: linear-gradient(90deg, #cdd9e3, #ffffff 50%, #cdd9e3);
}
.logo-edge-bottom {
  left: 8px; right: 8px; bottom: 0; height: 10px;
  transform: rotateX(-90deg); transform-origin: bottom center;
}
.logo-edge-left {
  left: 0; top: 8px; bottom: 8px; width: 10px;
  transform: rotateY(90deg); transform-origin: left center;
}
.logo-edge-right {
  right: 0; top: 8px; bottom: 8px; width: 10px;
  transform: rotateY(-90deg); transform-origin: right center;
  background: linear-gradient(180deg, #8699aa, #52687a);
}
.logo-plate-front::after {
  content: '';
  position: absolute; inset: 0; border-radius: 8px;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.55) 48%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.brand-logo { height: 38px; width: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.brand-divider { width: 1px; height: 30px; background: rgba(160, 190, 230, 0.35); }
.brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: 0.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: 12px; color: #b9c8dc; margin-top: 3px; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.top-actions {
  display: flex; gap: 10px; pointer-events: auto; align-items: center;
  flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px;
}
.weather-widget {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(160, 190, 230, 0.35);
  background: rgba(12, 22, 40, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e6f0fc;
  font-size: 12px;
  white-space: nowrap;
}
.weather-icon { font-size: 17px; line-height: 1; }
.weather-temp { font-size: 15px; font-weight: 800; color: #ffd98a; }
.weather-text { color: #b9c8dc; font-size: 12px; }
.weather-city { color: #9fb2cc; font-size: 11px; }
.clock-sep { width: 1px; height: 13px; background: rgba(160, 190, 230, 0.35); margin: 0 2px; }
.clock-time { font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.5px; font-size: 12px; color: #e6f0fc; }
.clock-date { color: #9fb2cc; font-size: 11px; }
