/* 海豚智能解析 - 海洋主题皮肤（全站统一质感） */

/* ================= 动态海洋背景 ================= */
.ocean {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(980px 460px at 50% -150px, #d6e7ff 0%, rgba(214, 231, 255, 0) 70%),
    radial-gradient(760px 440px at 94% 2%, rgba(186, 219, 255, .55) 0%, rgba(186, 219, 255, 0) 72%),
    radial-gradient(780px 460px at 2% 94%, rgba(200, 234, 255, .62) 0%, rgba(200, 234, 255, 0) 74%),
    linear-gradient(178deg, #f0f6ff 0%, #e2eeff 44%, #f7fbff 100%);
}
/* 缓慢漂移的光斑 */
.ocean-glow { position: absolute; border-radius: 50%; filter: blur(54px); opacity: .55; will-change: transform; }
.ocean-glow.g1 { width: 540px; height: 430px; left: -130px; top: 4%; background: #cfe4ff; animation: oceanDrift 28s ease-in-out infinite alternate; }
.ocean-glow.g2 { width: 470px; height: 390px; right: -150px; top: 24%; background: #d6f2ff; animation: oceanDrift 36s ease-in-out infinite alternate-reverse; }
.ocean-glow.g3 { width: 620px; height: 350px; left: 32%; bottom: -140px; background: #e4e1ff; opacity: .42; animation: oceanDrift 44s ease-in-out infinite alternate; }
@keyframes oceanDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(64px, -46px, 0) scale(1.14); }
}
/* 上浮气泡 */
.ocean .bub {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .98), rgba(255, 255, 255, .42) 58%, rgba(255, 255, 255, .05) 78%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: inset 0 -2px 6px rgba(150, 190, 240, .16);
  animation: oceanRise linear infinite;
}
.ocean .bub.dark { border-color: rgba(160, 200, 245, .55); box-shadow: inset 0 -2px 8px rgba(140, 180, 235, .22); }
@keyframes oceanRise {
  0% { transform: translateY(26px) scale(.86); opacity: 0; }
  12% { opacity: .72; }
  65% { opacity: .42; }
  100% { transform: translateY(-170px) scale(1.06); opacity: 0; }
}
/* 气泡分布（错落上浮，避免同一节奏） */
.ocean .bub.b1 { width: 24px; height: 24px; left: 7%; bottom: -3%; animation-duration: 24s; animation-delay: 0s; }
.ocean .bub.b2 { width: 14px; height: 14px; left: 13%; bottom: 6%; animation-duration: 19s; animation-delay: 3s; }
.ocean .bub.b3 { width: 32px; height: 32px; left: 23%; bottom: -6%; animation-duration: 28s; animation-delay: 7s; }
.ocean .bub.b4 { width: 11px; height: 11px; left: 35%; bottom: 2%; animation-duration: 17s; animation-delay: 11s; }
.ocean .bub.b5 { width: 20px; height: 20px; left: 47%; bottom: -4%; animation-duration: 22s; animation-delay: 5s; }
.ocean .bub.b6 { width: 28px; height: 28px; left: 58%; bottom: 4%; animation-duration: 26s; animation-delay: 13s; }
.ocean .bub.b7 { width: 13px; height: 13px; left: 68%; bottom: -2%; animation-duration: 18s; animation-delay: 8s; }
.ocean .bub.b8 { width: 34px; height: 34px; left: 78%; bottom: 8%; animation-duration: 30s; animation-delay: 2s; }
.ocean .bub.b9 { width: 16px; height: 16px; left: 87%; bottom: -5%; animation-duration: 21s; animation-delay: 10s; }
.ocean .bub.b10 { width: 22px; height: 22px; left: 94%; bottom: 3%; animation-duration: 25s; animation-delay: 16s; }
/* 底部水光 */
.ocean::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 240px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .62));
}

@media (prefers-reduced-motion: reduce) {
  .ocean-glow, .ocean .bub { animation: none; }
  .ocean .bub { opacity: .5; }
}

/* ================= 左侧菜单图标 ================= */
.nav-icon {
  position: relative; border-radius: 9px; color: #3d7cf0;
  background: linear-gradient(160deg, #f4f9ff 0%, #dfeaff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 3px 8px rgba(76, 124, 196, .16);
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .2s, background .2s, color .2s;
}
.nav-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 54%);
}
.nav-icon svg { position: relative; z-index: 1; }
.nav-icon.t-teal { color: #0e8f7c; background: linear-gradient(160deg, #f0fdfa 0%, #d6f5ee 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 3px 8px rgba(40, 160, 140, .16); }
.nav-icon.t-violet { color: #6748dd; background: linear-gradient(160deg, #f6f2ff 0%, #e5dbff 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 3px 8px rgba(120, 90, 220, .16); }
.nav-icon.t-amber { color: #bd7714; background: linear-gradient(160deg, #fff9ee 0%, #ffe8c6 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 3px 8px rgba(210, 150, 40, .18); }
.nav-icon.t-sky { color: #2b7fd0; background: linear-gradient(160deg, #f1faff 0%, #d8efff 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 3px 8px rgba(60, 140, 210, .16); }
.nav-icon.t-rose { color: #d15b74; background: linear-gradient(160deg, #fff5f7 0%, #ffe0e7 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 3px 8px rgba(210, 90, 120, .16); }

.nav-group:hover .nav-icon { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 6px 14px rgba(76, 124, 196, .24); }
/* 当前所在分组 / 当前一级菜单：渐变实底 + 白光 */
.nav-group.has-on .nav-icon, .nav-item.nav-top.on .nav-icon {
  color: #fff;
  background: linear-gradient(150deg, #86bcff 0%, #3d7cf0 58%, #2c5fcf 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(0, 40, 120, .18), 0 7px 16px rgba(53, 110, 220, .34);
}
.nav-item.nav-top.on .nav-icon { transform: translateY(-1px); }

/* 子菜单图标 */
.nav-item .ico { color: #93a3bd; transition: color .16s, filter .16s; }
.nav-item:hover .ico { color: var(--primary); }
.nav-item.on .ico { color: var(--primary); filter: drop-shadow(0 2px 4px rgba(61, 124, 240, .28)); }

/* ================= 卡片 / 表格 / 表单质感 ================= */
.cl-card, .cl-wrap .cl-card, .cl-table-card, .cl-browser, .card, .stat-card, .form-card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(204, 221, 244, .78);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(70, 116, 190, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.cl-card { padding: 15px 17px; }
.cl-table-card { overflow: hidden; }

.cl-table th, .tbl th {
  background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  color: #5d6d8a;
}
.cl-table td, .tbl td { border-bottom-color: rgba(206, 222, 243, .6); }
.cl-table tbody tr:hover td, .tbl tbody tr:hover td { background: rgba(238, 246, 255, .82); }
.cl-pager { background: rgba(255, 255, 255, .6); border-top-color: rgba(206, 222, 243, .6); }
.cl-divider { height: 1px; background: linear-gradient(90deg, rgba(186, 212, 242, 0), rgba(186, 212, 242, .9), rgba(186, 212, 242, 0)); margin: 14px 0 12px; }
.cl-panel-label { color: #2b3a57; }
.cl-home-url, .cl-textarea, .cl-link-area { background: rgba(250, 253, 255, .9); border-color: #dbe7f8; border-radius: 8px; }
.cl-tag { border-radius: 7px; }

/* 表单控件 */
.input, .select, .textarea {
  border-color: #dbe6f7; border-radius: 8px; background: rgba(255, 255, 255, .94);
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.input:hover, .select:hover, .textarea:hover { border-color: #c7dbf5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(61, 124, 240, .14); background: #fff; }

/* 按钮 */
.btn { border-radius: 8px; border-color: #dbe6f7; background: rgba(255, 255, 255, .92); transition: .16s; }
.btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 5px 14px rgba(61, 124, 240, .14); }
.btn-primary {
  background: linear-gradient(135deg, #5b9bff 0%, #3d7cf0 52%, #2f66d8 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(61, 124, 240, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { color: #fff; filter: brightness(1.04); box-shadow: 0 9px 22px rgba(61, 124, 240, .34), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-danger { border-color: #f3c9c9; background: rgba(255, 255, 255, .92); }
.cl-btn { border-radius: 7px; background: rgba(255, 255, 255, .94); border-color: #dbe6f7; }
.cl-btn:hover { box-shadow: 0 4px 12px rgba(61, 124, 240, .13); }
.cl-btn.primary {
  background: linear-gradient(135deg, #5b9bff, #3d7cf0 55%, #2f66d8); border-color: transparent;
  box-shadow: 0 5px 14px rgba(61, 124, 240, .26);
}
.cl-btn-launch {
  background: linear-gradient(135deg, #5b9bff, #3d7cf0 55%, #2f66d8); border-radius: 9px;
  box-shadow: 0 8px 18px rgba(61, 124, 240, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: filter .16s, transform .16s;
}
.cl-btn-launch:hover { background: linear-gradient(135deg, #5b9bff, #3d7cf0 55%, #2f66d8); filter: brightness(1.05); transform: translateY(-1px); }

/* 标签 / 弹窗 */
.tag { border-radius: 7px; }
.modal { border-radius: 16px; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 26px 70px rgba(30, 60, 120, .26); }
.modal-head { background: linear-gradient(180deg, #f8fbff, #fff); }
.mask.show { background: rgba(24, 40, 68, .38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* 详情面板 */
.pd-panel { background: rgba(255, 255, 255, .97); box-shadow: 0 26px 70px rgba(24, 48, 96, .3); }
.pd-top { background: linear-gradient(180deg, #f9fcff, #fff); }
.pd-mask { background: rgba(22, 38, 66, .42); }

/* 改色对齐海洋蓝 */
.pd-btn:hover { border-color: var(--primary); color: var(--primary); }
.pd-btn.primary { background: linear-gradient(135deg, #5b9bff, #3d7cf0 55%, #2f66d8); }
.pd-thumb.on { border-color: var(--primary); }
.pd-skucard.on { border-color: var(--primary); background: #f6faff; }
.pd-tag { background: #eaf2ff; color: var(--primary); }
.pd-tag.strong { background: var(--primary); }
.pd-note-edit:hover { color: var(--primary); }
.pd-chip.on { border-color: var(--primary); background: #f0f6ff; color: #2b62d4; }

/* ================= 管理后台（同一套海洋皮肤） ================= */
.admin .layout, .admin .login-layer { position: relative; z-index: 1; }
.admin .login-layer { background: transparent; }
.admin .login-card {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 18px;
  box-shadow: 0 26px 64px rgba(46, 92, 160, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.admin .sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .84) 0%, rgba(246, 251, 255, .9) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  border-right: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 6px 0 26px rgba(72, 116, 186, .06);
}
.admin .brand { border-bottom-color: rgba(196, 217, 242, .55); }
.admin .topbar {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  border-bottom: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 22px rgba(70, 116, 190, .06);
}
.admin .page { background: transparent; }
.admin .side-nav a { border-radius: 9px; gap: 9px; }
.admin .side-nav a .ic {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 0; color: #4a7fe0;
  background: linear-gradient(160deg, #f4f9ff, #e2eeff);
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(76, 124, 196, .14);
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.admin .side-nav a .ic svg { width: 13px; height: 13px; }
.admin .side-nav a:hover .ic { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 5px 11px rgba(76, 124, 196, .22); }
.admin .side-nav a.on .ic {
  color: #fff; background: linear-gradient(150deg, #86bcff, #3d7cf0 60%, #2c5fcf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 5px 12px rgba(53, 110, 220, .3);
}
.admin .side-nav a.on { background: linear-gradient(90deg, rgba(226, 239, 255, .95), rgba(238, 247, 255, .7)); color: var(--primary); }
.admin .stat-card, .admin .card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(204, 221, 244, .78); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(70, 116, 190, .09), inset 0 1px 0 rgba(255, 255, 255, .95);
}
.admin .tbl th { background: linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%); color: #5d6d8a; }
.admin .tbl td { border-bottom-color: rgba(206, 222, 243, .6); }
.admin .tbl tbody tr:hover td { background: rgba(238, 246, 255, .82); }
.admin .mini-bars .bar {
  max-width: 46px; border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #8ec4ff 0%, #3d7cf0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
