/* ========== 设计变量（中国传统色：天青 / 水绿） ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --grad: linear-gradient(135deg, #2E8E8B 0%, #4FAE8F 55%, #7BC8A4 100%);
  --grad-soft: linear-gradient(135deg, #E4F2F0 0%, #EAF6EF 100%);
  --pink: #2E8E8B;
  --purple: #205C5A;
  --orange: #D98E3A;

  --bg: #F4F9F8;
  --card: #FFFFFF;
  --text: #26332F;
  --text-2: #52615C;
  --text-3: #8A9894;

  --border: #E7EFED;
  --border-strong: #CFDDD9;

  --red: #D9534F;
  --red-bg: #FCEAE8;
  --orange-bg: #FFF4E3;
  --green: #3FAE7E;
  --green-bg: #E6F6EF;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .05);
  --shadow: 0 2px 14px rgba(0, 0, 0, .06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .10);
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 顶部渐变细条（INS 标志性点缀） */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad); z-index: 300;
}

.hidden { display: none !important; }

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ========== 通用控件 ========== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--grad); color: #fff; border: none;
  padding: 10px 22px; border-radius: 24px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(46, 142, 139, .28);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(46, 142, 139, .34); }
.btn-primary:disabled { filter: grayscale(.4); opacity: .7; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: var(--text-2);
  border: 1px solid var(--border-strong); padding: 9px 18px; border-radius: 24px; font-size: 14px;
  transition: all .2s;
}
.btn-ghost:hover { color: var(--pink); border-color: var(--pink); background: var(--grad-soft); }
.btn-ghost.active { color: var(--pink); border-color: var(--pink); background: var(--grad-soft); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }

.input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 14px; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(46, 142, 139, .12); }

/* 月份下拉选择 */
.month-select {
  width: auto; min-width: 132px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238E8E8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding-right: 32px;
}
.month-select:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(46, 142, 139, .12); }

.hint { color: var(--text-3); font-size: 13px; }
.spacer { flex: 1; }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--red); color: #fff; border: none;
  padding: 7px 16px; border-radius: 22px; font-size: 13px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(226, 76, 76, .25);
  transition: all .2s;
}
.btn-danger:hover { filter: brightness(.95); }

/* ========== 登录页 ========== */
.login-view {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 18% 20%, #fde8f0 0%, transparent 42%),
    radial-gradient(circle at 82% 80%, #fde8d9 0%, transparent 42%),
    var(--bg);
  padding: 20px;
}
.login-card {
  background: var(--card); border-radius: 24px; box-shadow: var(--shadow-lg);
  width: 380px; max-width: 100%; padding: 44px 38px 36px; text-align: center;
}
.login-logo {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 18px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(46, 142, 139, .3);
}
.login-card h1 { font-size: 22px; margin-bottom: 6px; font-weight: 800; letter-spacing: .5px; }
.login-sub { color: var(--text-2); font-size: 14px; margin-bottom: 26px; }
.login-body { min-height: 120px; position: relative; }
.login-loading { color: var(--text-3); font-size: 14px; padding: 40px 0; }
.qr-wrap { padding: 8px 0; }
.qr-wrap iframe { border: none; }
.qr-tip { color: var(--text-2); font-size: 13px; margin-top: 12px; }
#btn-wrap { padding-top: 20px; }
/* 飞书扫码入口：弱化为次要、折叠，主推账号密码登录 */
.feishu-mini { margin-top: 6px; }
.feishu-mini #feishu-toggle { font-size: 13px; padding: 8px 12px; color: var(--text-2); border-color: var(--border); }
.feishu-mini #qr-wrap { margin-top: 8px; text-align: center; }
.feishu-mini #btn-wrap { padding-top: 8px; }
#demo-wrap { margin-top: 12px; }
.login-error { color: var(--red); font-size: 13px; margin-top: 14px; }

/* 登录页右侧边栏（PC 端） */
.login-sidebar {
  display: flex; flex-direction: column; gap: 12px; width: 280px; flex-shrink: 0;
}
.login-lw-card {
  background: var(--card); border-radius: 16px; padding: 12px 14px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.login-lw-card .lw-head { margin-bottom: 8px; }
/* 登录卡 + widget + 侧边栏容器（PC 端横向三列） */
.login-wrapper {
  display: flex; flex-direction: row; align-items: flex-start;
  gap: 20px; width: 100%; max-width: 960px;
}
.login-card { flex: 0 0 380px; }
.login-widgets { flex: 0 0 260px; }
.login-sidebar { flex: 0 0 280px; }
.login-music-frame {
  height: 180px; border-radius: 10px; overflow: hidden;
}
.login-music-iframe {
  width: 100%; height: 180px; border: 0; display: block;
  background: #f7f7f7; border-radius: 10px;
}
/* 策略/价格轮播容器 */
.lwp-carousel { position: relative; overflow: hidden; min-height: 300px; }
.lwp-track { display: flex; transition: transform 0.5s ease; }
.lwp-slide { min-width: 100%; padding: 4px 0; }
.lwp-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2); line-height: 1.5; padding: 4px 0;
}
.lwp-item .lwp-price { color: var(--red); font-weight: 700; font-size: 13px; white-space: nowrap; }
.lwp-item .lwp-drop { color: var(--red); font-size: 11px; font-weight: 600; white-space: nowrap; }
.lwp-item .lwp-platform {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: var(--grad-soft); color: var(--pink);
}
.lwp-item .lwp-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwp-dots { display: flex; justify-content: center; gap: 4px; position: absolute; bottom: 10px; left: 0; right: 0; }
.lwp-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong);
  cursor: pointer; transition: all .2s;
}
.lwp-dot.active { background: var(--pink); width: 16px; border-radius: 3px; }
.lwp-strategy-item { padding: 8px 4px; display: flex; flex-direction: column; gap: 6px; }
.lwp-strategy-header { display: flex; align-items: center; gap: 6px; }
.lwp-strategy-header strong { color: var(--text); font-weight: 600; font-size: 13px; }
.lwp-strategy-guide { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.lwp-strategy-more { font-size: 11px; color: var(--pink); cursor: pointer; }
.lwp-strategy-item .lwp-cat {
  font-size: 10px; color: var(--text-3); background: var(--grad-soft);
  padding: 1px 6px; border-radius: 4px; flex-shrink: 0;
}

/* ========== 顶栏 ========== */
.topbar {
  display: flex; align-items: center; gap: 24px;
  background: #fff; padding: 14px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .03);
}
.brand {
  display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700;
  color: #fff; background: var(--grad); padding: 9px 16px; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(46, 142, 139, .25);
  flex-shrink: 0;
}
.user-box { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--border); object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--border-strong); }
.user-name { font-size: 14px; color: var(--text-2); font-weight: 500; }

/* ========== 模块 Tab（待办事项 / 备忘录） ========== */
.module-tabs {
  display: flex; gap: 10px; max-width: 1280px; margin: 0 auto;
  padding: 18px 24px 0;
}
.module-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border-strong);
  padding: 10px 26px; border-radius: 24px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: all .2s;
}
.module-tab .mt-icon { width: 18px; height: 18px; display: block; }
/* 外链 Tab（儿童成长 / 比价）：a 标签需去掉下划线与继承色 */
a.module-tab { text-decoration: none; cursor: pointer; }
.module-tab-external .mt-ext {
  width: 13px; height: 13px; display: block; opacity: .55; margin-left: 2px;
}
.module-tab-external:hover .mt-ext { opacity: 1; }
.module-tab:hover { color: var(--pink); border-color: var(--pink); background: var(--grad-soft); }
.module-tab.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(46, 142, 139, .25);
}

/* 待办统计条（仅待办页，竖向排列在顶栏下） */
.todo-stats-bar {
  background: var(--grad-soft);
  padding: 12px 24px;
  position: sticky; top: 61px; z-index: 19;
  border-bottom: 1px solid var(--border);
}
.todo-stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 12px; justify-content: center;
}
.todo-stats-inner .stat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 18px; background: #fff;
  border-radius: 12px; font-size: 13px;
  box-shadow: var(--shadow-sm);
  min-width: 72px; justify-content: center;
}
.todo-stats-inner .stat .num { font-size: 20px; font-weight: 800; color: var(--text); }
.todo-stats-inner .stat .lbl { font-size: 12px; color: var(--text-3); }
.todo-stats-inner .stat.danger .num { color: var(--red); }

/* PC 端双栏布局容器 */
.layout-main {
  max-width: 1280px; margin: 0 auto; padding: 24px 24px 60px;
  display: grid; grid-template-columns: 1fr 300px; gap: 24px;
  align-items: start;
}
.layout-content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.layout-sidebar {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 120px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.layout-sidebar::-webkit-scrollbar { width: 4px; }
.layout-sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }

/* 侧边栏卡片通用样式 */
.sidebar-stat-card, .today-schedule-card, .sidebar-priority-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px;
}
.today-schedule-card { margin-bottom: 0; }
.today-schedule-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.today-schedule-header h3 { font-size: 15px; font-weight: 700; margin: 0; }
.schedule-actions { display: flex; gap: 4px; }
.sidebar-stat-card .stat-row {
  display: flex; gap: 12px;
}
.sidebar-stat-card .stat-item {
  flex: 1; text-align: center; padding: 12px 8px;
  background: var(--grad-soft); border-radius: 12px;
}
.sidebar-stat-card .stat-item.danger { background: var(--red-bg); }
.sidebar-stat-card .stat-num {
  display: block; font-size: 24px; font-weight: 800; color: var(--text);
  line-height: 1.2;
}
.sidebar-stat-card .stat-item.danger .stat-num { color: var(--red); }
.sidebar-stat-card .stat-label { font-size: 12px; color: var(--text-3); }
.sidebar-priority-card h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0 0 10px; }

/* ========== 侧边栏工具箱（音乐 / 儿童成长 / 比价 / 预留） ========== */
.sidebar-toolbox {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px;
}
.sidebar-toolbox.hidden { display: none; }
.toolbox-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: #EEF3F2; border-radius: 10px; padding: 3px; margin-bottom: 12px;
}
.toolbox-tab {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 2px; border-radius: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all .18s;
}
.toolbox-tab:hover { color: var(--pink); }
.toolbox-tab.active {
  background: #fff; color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.tool-panel.hidden { display: none; }
.tool-external-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; padding: 7px 11px; border-radius: 8px;
  background: var(--grad-soft); color: var(--pink);
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.tool-external-link:hover { filter: brightness(.97); }
.tool-external-link .mt-ext { width: 12px; height: 12px; display: block; }
.toolbox-placeholder {
  text-align: center; padding: 18px 0; margin: 0;
  color: var(--text-3); font-size: 12px; letter-spacing: 1px;
}

/* 音乐模块移入 300px 窄侧栏后的竖排适配（原为主内容区宽栏设计） */
.sidebar-toolbox .music-section { gap: 10px; }
.sidebar-toolbox .music-loader { display: flex; flex-direction: column; gap: 8px; }
.sidebar-toolbox .music-loader .input { flex: none; min-width: 0; width: 100%; }
.sidebar-toolbox .music-loader-actions { display: flex; gap: 8px; }
.sidebar-toolbox .music-loader-actions .btn-sm { flex: 1; padding: 7px 8px; }
.sidebar-toolbox .music-presets { flex-direction: column; gap: 6px; align-items: stretch; }
.sidebar-toolbox .presets-label { padding-top: 0; font-size: 12px; }
.priority-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.priority-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: var(--orange-bg); border-radius: 8px;
  font-size: 12px; color: var(--text); font-weight: 500;
}

/* 快速添加 */
.quick-add {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}
.quick-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.quick-header h2 { font-size: 16px; font-weight: 700; }
.quick-header-actions { display: flex; gap: 8px; }

#quick-text, #meeting-text {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 14px; font-size: 14px; resize: vertical; background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
#quick-text:focus, #meeting-text:focus {
  outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(46, 142, 139, .12);
}
.quick-actions { display: flex; align-items: center; margin-top: 12px; }

.speech-status { color: var(--pink); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.speech-status .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: blink 1s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

/* AI 解析预览 */
.parse-preview {
  margin-top: 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--grad-soft); padding: 14px;
}
.preview-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--purple); margin-bottom: 10px;
}
.preview-item {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm);
}
.preview-item .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.preview-item .row input[type="text"] { flex: 1; min-width: 160px; }
.preview-item .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-item .meta input, .preview-item .meta select {
  padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 12px; background: #fff;
}
.preview-item .del { color: var(--red); background: none; border: none; font-size: 18px; }
.preview-item .p-items {
  width: 100%; min-height: 34px; resize: vertical; font-size: 12px;
  padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 10px;
  font-family: inherit; box-sizing: border-box;
}
.todo-items {
  margin-top: 8px; padding: 10px 12px; background: #F7FBFA;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.todo-sub-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.45; color: var(--text); word-break: break-word;
  cursor: pointer; padding: 2px 0;
}
.todo-sub-item .sub-check {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--green); cursor: pointer;
}
.todo-sub-item .sub-text { flex: 1; min-width: 0; }
.todo-sub-item.done .sub-text { text-decoration: line-through; color: var(--text-3); }
.sub-progress { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* 过程跟踪（卡片内展开） */
.todo-track {
  margin-top: 4px; padding: 8px 12px; background: var(--grad-soft);
  border-radius: var(--radius-sm); display: flex; flex-direction: column; gap: 4px;
}
.track-item { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--text-2); }
.track-item .track-time { flex-shrink: 0; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 86px; }
.track-item .track-text { flex: 1; min-width: 0; word-break: break-word; color: var(--text); }

/* 编辑模态框：过程跟踪 */
.track-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; max-height: 180px; overflow-y: auto; }
.track-row {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  background: var(--grad-soft); border-radius: 10px; padding: 7px 10px;
}
.track-row .track-time { flex-shrink: 0; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 84px; }
.track-row .track-text { flex: 1; min-width: 0; word-break: break-word; }
.track-row .track-del {
  border: none; background: transparent; color: var(--text-3); font-size: 16px;
  line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 6px;
}
.track-row .track-del:hover { color: var(--red); background: var(--red-bg); }
.track-empty { font-size: 12px; color: var(--text-3); padding: 8px 4px; }
.track-add { display: flex; gap: 8px; margin-bottom: 14px; }
.track-add .input { flex: 1; min-width: 0; }
.preview-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }

/* 待办列表 */
.todo-section { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.todo-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.tabs { display: flex; background: var(--grad-soft); border-radius: 24px; padding: 4px; gap: 2px; }
.tab {
  border: none; background: transparent; padding: 7px 18px; border-radius: 20px;
  font-size: 14px; color: var(--text-2); transition: all .2s; font-weight: 600;
}
.tab.active { background: #fff; color: var(--pink); box-shadow: var(--shadow-sm); }

.todo-list {
  display: flex; flex-direction: column; gap: 12px;
}
.empty-tip { text-align: center; color: var(--text-3); padding: 44px 0; font-size: 14px; }

/* ========== 重复任务（递归待办模板） ========== */
.recur-section {
  margin-top: 22px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
}
.recur-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px;
}
.recur-head .hint { font-size: 12px; color: var(--text-3); font-weight: 400; }
.recur-list { display: flex; flex-direction: column; gap: 8px; }
.recur-item {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
  background: var(--bg-soft, #FAFBFB);
}
.recur-title { font-weight: 600; color: var(--text); font-size: 14px; }
.recur-label {
  font-size: 12px; color: var(--text-2);
  background: #EFF6F5; padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}
.recur-actions { margin-left: auto; display: flex; gap: 4px; }

.recur-notify {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2); margin: 10px 0 4px;
}
.recur-notify input { accent-color: var(--pink); width: 15px; height: 15px; }

/* AI 预览里每条待办的周期设置行 */
.recur-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
}
.recur-row .p-recur { width: auto; }
.recur-row .input-sm { width: auto; }
.recur-row .chk {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.recur-row .chk input { accent-color: var(--pink); width: 14px; height: 14px; }

.todo-item {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.todo-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }
.todo-item.overdue { border-left: 4px solid var(--red); }
.todo-item.priority-high { border-left: 4px solid var(--orange); }
.todo-item.done .todo-title { text-decoration: line-through; color: var(--text-3); }
.todo-item.selected { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(46, 142, 139, .25); background: #fff; }

.todo-head { display: flex; align-items: flex-start; gap: 10px; }
.todo-head .todo-title { flex: 1; min-width: 0; }
.todo-select { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: var(--pink); cursor: pointer; }

.checkbox {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--border-strong); cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .2s; background: #fff;
}
.checkbox:hover { border-color: var(--pink); }
.todo-item.done .checkbox { background: var(--grad); border-color: transparent; }
.checkbox svg { opacity: 0; transition: opacity .2s; }
.todo-item.done .checkbox svg { opacity: 1; }

.todo-title { font-size: 15px; line-height: 1.45; cursor: pointer; word-break: break-word; font-weight: 500; }
.todo-meta { display: flex; gap: 6px 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.meta-chip { display: inline-flex; align-items: center; gap: 4px; }
.meta-chip.due { color: var(--orange); font-weight: 500; }
.meta-chip.due.overdue { color: var(--red); }
.meta-chip .src { background: #f2f2f2; border-radius: 6px; padding: 1px 8px; }

.prio-tag {
  font-size: 11px; padding: 2px 10px; border-radius: 12px; font-weight: 700;
}
.prio-high { background: var(--red-bg); color: var(--red); }
.prio-medium { background: var(--orange-bg); color: #D98800; }
.prio-low { background: #F2F2F2; color: var(--text-2); }

.todo-actions { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.todo-actions .todo-select { margin-left: 8px; margin-top: 0; accent-color: var(--pink); cursor: pointer; }
.icon-btn {
  border: none; background: transparent; color: var(--text-3);
  padding: 6px 8px; border-radius: 8px; font-size: 14px; transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #F2F2F2; color: var(--text); }
.icon-btn.danger:hover { background: var(--red-bg); color: var(--red); }

/* ========== 备忘录 ========== */
.memo-section { display: flex; flex-direction: column; gap: 16px; }
.memo-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.memo-toolbar h2 { font-size: 18px; color: var(--text); font-weight: 700; }
.memo-toolbar .hint { font-size: 12px; color: var(--text-3); }

.memo-add { display: flex; gap: 10px; }
.memo-add .input { flex: 1; }

.memo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ========== 全局搜索栏 ========== */
.search-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.search-bar .search-input { flex: 1; min-width: 180px; }
.search-fld { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.search-fld .input-sm { width: 140px; padding: 7px 12px; border-radius: 10px; }

.memo-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.memo-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: transparent; }

.memo-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-soft); color: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 2px;
}

.memo-body { flex: 1; min-width: 0; }
/* 整卡可点击：鼠标手势 + 悬停高亮 */
.memo-body[data-act] { cursor: pointer; border-radius: var(--radius-sm); }
.memo-card:hover { background: var(--bg-soft); }
.memo-card:hover .note-title { color: var(--pink); }
.memo-content { font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.memo-time { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.memo-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px;
  color: var(--pink); text-decoration: none; font-weight: 600;
}

/* 已隐藏笔记恢复列表 */
.hidden-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hidden-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft);
}
.hidden-name { font-size: 13px; color: var(--text); word-break: break-all; }
.memo-link:hover { text-decoration: underline; }

/* 备忘附件（图片/文档 + AI 摘要） */
.upload-btn { cursor: pointer; white-space: nowrap; }
.memo-att-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.memo-att {
  display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap;
  background: var(--grad-soft); border-radius: 10px; padding: 8px 10px; font-size: 12px;
}
.memo-att .att-icon { flex-shrink: 0; }
.memo-att .att-name { font-weight: 600; color: var(--text); word-break: break-all; }
.memo-att .att-summary { width: 100%; color: var(--text-2); line-height: 1.5; white-space: pre-wrap; }
.memo-view-attachments { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.view-att { background: var(--grad-soft); border-radius: 12px; padding: 10px 12px; }
.view-att-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.view-att-summary { margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.6; white-space: pre-wrap; }

/* 卡片上的扁平化原文链接：仅图标 */
.memo-link-icon {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 8px; width: 34px; height: 34px; border-radius: 10px;
  color: var(--pink); text-decoration: none; transition: all .2s;
}
.memo-link-icon:hover { background: var(--grad-soft); }

/* 扁平化图标统一尺寸 */
.icon { width: 18px; height: 18px; display: block; flex-shrink: 0; }

.memo-card .memo-del { flex-shrink: 0; margin-top: 2px; }

.memo-actions { display: flex; gap: 2px; flex-shrink: 0; }
.memo-content[data-act="view"] { cursor: pointer; }

.memo-edited-tag {
  display: inline-block; font-size: 11px; color: var(--text-3);
  background: #F2F2F2; border-radius: 6px; padding: 0 6px; margin-left: 6px;
}

/* 备忘录查看/编辑模态框 */
.memo-view-content {
  font-size: 15px; line-height: 1.8; white-space: pre-wrap;
  word-break: break-word; color: var(--text); min-height: 60px;
}
.memo-view-meta {
  font-size: 12px; color: var(--text-3); margin-top: 16px;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* ========== 模态框 ========== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(38, 38, 38, .45);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  padding: 20px; backdrop-filter: blur(3px);
}
.modal {
  background: #fff; border-radius: 22px; width: 620px; max-width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal-sm { width: 480px; }
/* 笔记弹窗：宽度随浏览器自适应，桌面较宽、移动端留边距 */
.modal-notes { width: min(900px, 94vw); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-close {
  border: none; background: transparent; font-size: 24px; color: var(--text-3);
  padding: 0 4px; line-height: 1; transition: color .2s;
}
.modal-close:hover { color: var(--red); }
.modal-body { padding: 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }
.modal label { display: block; font-size: 13px; color: var(--text-2); margin: 14px 0 6px; }
.modal .form-row { display: flex; gap: 14px; }
.modal .form-row > div { flex: 1; }
.modal-preview { border-top: 1px dashed var(--border); padding: 16px 24px; background: #fafafa; }

/* 小屏适配 */
@media (max-width: 1024px) {
  .layout-main { grid-template-columns: 1fr; }
  .layout-sidebar { position: static; max-height: none; overflow-y: visible; }
  .todo-list { grid-template-columns: repeat(2, 1fr); }
  .memo-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  /* 禁止页面整体横向溢出 */
  html, body { overflow-x: hidden; max-width: 100vw; }
  * { max-width: 100%; }
  /* 豁免：天气横向拖动模块保持内容真实宽度（inner/SVG 1400px 等），仅由 JS 拖动控制横向位移。
     否则 *{max-width:100%} 会把 inner/SVG 压扁成整图缩显且无法拖动（2026-08-29 修复） */
  .lw-weather-scroll, .lw-weather-scroll * { max-width: none; }

  .topbar { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .stat .num { font-size: 18px; }
  .stat .lbl { font-size: 11px; }
  .todo-list { grid-template-columns: 1fr; }
  .memo-list { grid-template-columns: 1fr; }
  .memo-toolbar { flex-direction: column; align-items: flex-start; }
  .memo-add { flex-direction: column; }
  .module-tabs { padding: 12px 16px 0; }
  .module-tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: 14px; }

  /* 输入框和文本框不超出屏幕 */
  input[type="text"], input[type="password"], input[type="email"],
  .input, textarea { max-width: 100%; overflow-x: auto; word-break: break-word; }
  #quick-text, #meeting-text, #memo-input, #memo-edit-textarea,
  #edit-title, #edit-source, #track-input {
    width: 100%; max-width: 100%;
    overflow-x: auto; word-break: break-word;
    -webkit-overflow-scrolling: touch;
  }

  /* 待办卡片：确保完整显示，不超出屏幕（恢复 8-25 丢失的溢出保护，勿删） */
  .todo-item { max-width: 100%; box-sizing: border-box; overflow: hidden; min-width: 0; }
  .todo-head { display: flex; align-items: flex-start; gap: 8px; width: 100%; min-width: 0; }
  .todo-title { flex: 1; min-width: 0; max-width: 100%; font-size: 14px; }
  .todo-actions { flex-shrink: 0; display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .todo-select { flex-shrink: 0; width: 16px; height: 16px; }
  .icon-btn { padding: 4px 6px; font-size: 13px; }
  .checkbox { width: 20px; height: 20px; }
  .todo-meta { gap: 4px 10px; font-size: 11px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .todo-meta::-webkit-scrollbar { display: none; }
  .todo-meta .meta-chip, .todo-meta .prio-tag { white-space: nowrap; flex-shrink: 0; }

  /* AI 预览：时间/来源/优先级 三控件一行（grid 三列，不换行） */
  .preview-item .meta { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 6px; width: 100%; }
  .preview-item .meta input, .preview-item .meta select { width: 100%; min-width: 0; padding: 6px 6px; font-size: 12px; }

  /* Widget 在移动端改为单列 */
  .login-widgets { grid-template-columns: 1fr; }

  /* 移动端：隐藏登录页右侧边栏 */
  .login-sidebar { display: none !important; }
  .login-wrapper { flex-direction: column; align-items: stretch; }
  .login-card { width: 100%; }

  /* 统计条自适应 */
  .todo-stats-bar { padding: 10px 16px; }
  .todo-stats-inner { gap: 16px; justify-content: space-around; }

  /* 模态框在小屏更紧凑 */
  .modal { width: 96%; margin: 10px; }
  .modal-sm { width: 96%; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 14px 16px; }
  .modal-foot { padding: 12px 16px; }
}

/* 登录页 Widget（天气+资讯，PC端放在登录卡右侧） */
.login-widgets {
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
.lw-card {
  background: var(--grad-soft); border-radius: 14px; padding: 12px 14px;
  border: 1px solid var(--border);
  min-width: 0;  /* grid 子项设 0，防 min-content 撑开列导致卡片被挤出 */
}
.lw-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 6px;
}
.lw-icon { width: 14px; height: 14px; color: var(--pink); flex-shrink: 0; }
.lw-refresh {
  margin-left: auto; cursor: pointer; font-size: 14px;
  color: var(--text-3); transition: all .2s;
}
.lw-refresh:hover { color: var(--pink); }
.lw-body { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.lw-weather-main { display: flex; align-items: center; gap: 8px; }
.lw-weather-icon { font-size: 20px; line-height: 1; }
.lw-weather-temp { font-size: 18px; font-weight: 800; color: var(--text); }
.lw-weather-detail { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.lw-weather-extra { font-size: 10.5px; color: var(--text-3); margin-top: 2px; }

/* 空气质量 */
.lw-air { font-size: 11px; color: var(--text-2); margin-top: 4px; }
.lw-air .aqi-good { color: #2e9e4f; font-weight: 700; }
.lw-air .aqi-mid { color: #c79a00; font-weight: 700; }
.lw-air .aqi-bad { color: #e8722d; font-weight: 700; }
.lw-air .aqi-vbad { color: #d23b3b; font-weight: 700; }
.lw-fc-precip { font-size: 9px; color: #3a8fd0; margin-top: 2px; }
.lw-chart-container { margin-top: 8px; border-radius: 10px; overflow: hidden; position: relative; }
.lw-chart { width: 100%; height: 90px; display: block; touch-action: none; cursor: grab; }

/* 统一横向拖动容器：小时卡片 + 图表一起滑动（标题与 Tab 固定，不随拖动） */
.lw-weather-scroll {
  overflow: hidden; touch-action: none; border-radius: 10px;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  position: relative;
}
.lw-weather-scroll.dragging { cursor: grabbing; }
/* 触屏手势全区域禁用：任何子元素（卡片/emoji/图表）起点都交给 JS 拖动，不触发页面滚动 */
.lw-weather-scroll, .lw-weather-scroll * { touch-action: none; }
.lw-weather-scroll .lw-scroll-inner {
  display: flex; flex-direction: column;
  will-change: transform; user-select: none;
  -webkit-user-select: none; cursor: grab;
}
.lw-weather-scroll .lw-chart-tabs { margin-top: 8px; }
.lw-weather-scroll .lw-chart-container { flex: 0 0 auto; margin-left: 0; margin-right: 0; }

/* 小时卡片行：不换行、不滚动，交给外层统一拖动 */
.lw-hour-row { flex-wrap: nowrap !important; overflow: visible !important; }
.lw-hour-row .lw-fc-item { flex: 0 0 52px; min-width: 52px; }

/* Tab 按钮样式 */
.lw-chart-tabs { display: flex; gap: 4px; margin-top: 8px; margin-bottom: 4px; }
.lw-chart-tab {
  flex: 1; padding: 6px 0; font-size: 11px; font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: 16px;
  background: #fff; color: var(--text-2); cursor: pointer;
  transition: all .2s; text-align: center;
}
.lw-chart-tab:hover { background: var(--grad-soft); color: var(--pink); }
.lw-chart-tab.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(46, 142, 139, .25);
}

/* 更多小时提示 */
.lw-more-hint { font-size: 10px; color: var(--text-3); margin-top: 4px; text-align: center; }

/* 固定坐标轴（右轴：降雨概率 %；左轴：温度/降雨量/风力刻度）
   绝对定位固定在可视区两侧，不随横向拖动；垂直位置/高度由 JS 对齐 SVG 图区 */
.lw-chart-axisfixed {
  position: absolute; right: 0; width: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end; padding-right: 4px; box-sizing: border-box;
  font-size: 8px; font-weight: 700; color: #8e44ad;
  pointer-events: none; z-index: 3;
  background: linear-gradient(to left, rgba(255,255,255,.95), rgba(255,255,255,0));
  border-left: 1px solid rgba(142,68,173,.18);
  border-radius: 0 8px 8px 0;
}
.lw-chart-axisfixed span {
  background: rgba(255,255,255,.6);
  border-radius: 3px; padding: 0 2px; line-height: 1.45;
}
/* 左轴：固定在可视区左侧，与右轴对称布局 */
.lw-chart-axisfixed-left {
  right: auto; left: 0; width: 40px;
  align-items: flex-start; padding-right: 0; padding-left: 4px;
  background: linear-gradient(to right, rgba(255,255,255,.95), rgba(255,255,255,0));
  border-left: none; border-right: 1px solid rgba(0,0,0,.08);
  border-radius: 8px 0 0 8px;
}
.lw-chart-axisfixed-left[data-axis="temp"] { color: #d97706; }
.lw-chart-axisfixed-left[data-axis="rain"] { color: #2f7cb8; }
.lw-chart-axisfixed-left[data-axis="wind"] { color: #2e9e4f; }
.lw-chart-axisfixed.hidden { display: none; }

/* 图表图例（固定在可视区，不随拖动；仅降雨 Tab 显示） */
.lw-chart-legend {
  display: flex; justify-content: center; gap: 16px;
  font-size: 10px; color: var(--text-2); padding-top: 6px;
}
.lw-chart-legend.hidden { display: none; }
.lw-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lw-chart-legend .lg-bar {
  width: 14px; height: 8px; border-radius: 2px;
  background: linear-gradient(#54a7e0, #2f7cb8);
  box-shadow: inset 0 0 0 1px rgba(58,143,208,.4);
}
.lw-chart-legend .lg-line { width: 16px; border-top: 2px dashed #8e44ad; }

/* 未来3小时逐小时预报标题 */
.lw-hour-head { font-size: 11px; color: var(--text-3); margin-top: 8px; margin-bottom: 2px; }

/* 预报行容器（默认横向：未来3小时用） */
.lw-forecast { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.lw-fc-item { flex: 1 0 auto; min-width: 52px; text-align: center; background: var(--bg-2, #f4f5f7); border-radius: 8px; padding: 6px 4px; }
.lw-fc-day { font-size: 11px; color: var(--text-2); font-weight: 600; }
.lw-fc-icon { font-size: 18px; line-height: 1.4; }
.lw-fc-desc { font-size: 10.5px; color: var(--text-2); line-height: 1.2; }
.lw-fc-temp { font-size: 11px; color: var(--text); }
.lw-fc-pop { font-size: 10px; color: #3a8fd0; }

/* 未来几天（5天）竖向排列，每行一天，节省横向空间 */
.lw-forecast-col { flex-direction: column; gap: 4px; overflow: visible; }
.lw-forecast-col .lw-fc-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-width: 0; padding: 6px 10px; text-align: left;
}
.lw-forecast-col .lw-fc-day { width: 36px; flex: 0 0 36px; }
.lw-forecast-col .lw-fc-icon { width: 24px; flex: 0 0 24px; text-align: center; }
.lw-forecast-col .lw-fc-temp { flex: 1; font-weight: 600; }
.lw-forecast-col .lw-fc-pop { width: 44px; flex: 0 0 44px; text-align: right; }
.lw-forecast-col .lw-fc-desc { flex: 0 0 auto; min-width: 48px; }

/* 预警 */
.lw-warn { font-size: 11px; margin-top: 6px; padding: 5px 8px; border-radius: 8px; line-height: 1.4; }
.lw-warn-typhoon { background: #fdeaea; color: #c0392b; font-weight: 700; border: 1px solid #f3c0c0; }
.lw-warn-other { background: #fff6e6; color: #b9770a; border: 1px solid #f0d9a8; }

/* ============ 全站天气预警滚动横幅 ============ */
.warn-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: stretch;
  background: #c0392b; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.warn-banner.warn-other { background: #d98324; }
.warn-banner .warn-viewport { flex: 1; overflow: hidden; white-space: nowrap; }
.warn-banner .warn-track {
  display: inline-flex; white-space: nowrap; will-change: transform;
  animation: warn-scroll 22s linear infinite;
}
.warn-banner .warn-seg { padding: 8px 0; }
@keyframes warn-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.warn-banner .warn-close {
  background: transparent; border: 0; color: #fff;
  font-size: 18px; line-height: 1; padding: 0 12px; cursor: pointer;
  opacity: .85; flex: 0 0 auto;
}
.warn-banner .warn-close:hover { opacity: 1; }
body.warn-on { padding-top: 33px; }

/* ============ 预警弹窗 ============ */
.warn-modal-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.warn-modal-item:last-child { border-bottom: none; }
.warn-modal-item-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.warn-modal-type {
  font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; color: #fff; flex-shrink: 0;
}
.warn-modal-type.typhoon { background: #c0392b; }
.warn-modal-type.extreme { background: #c0392b; }
.warn-modal-type.severe { background: #e67e22; }
.warn-modal-type.moderate { background: #f39c12; }
.warn-modal-type.minor { background: #27ae60; }
.warn-modal-name { font-weight: 700; font-size: 15px; }
.warn-modal-meta { font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.warn-modal-text { font-size: 13px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }

.lw-news-list { list-style: none; padding: 0; margin: 0; }
.lw-news-list li {
  padding: 2px 0; border-bottom: 1px dashed var(--border-strong);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 11px;
}
.lw-news-list li:last-child { border-bottom: none; }
.lw-news-list a { color: var(--pink); text-decoration: none; }
.lw-news-list a:hover { text-decoration: underline; }
.lw-pnts { font-size: 10px; color: var(--text-3); margin-left: 4px; }

/* 备忘录卡片优化：编号移至右上角 */
.memo-card {
  position: relative;
  display: flex; flex-direction: column;
}
.memo-num {
  position: absolute; top: 8px; right: 10px;
  width: 22px; height: 22px; font-size: 11px;
  border-radius: 50%; background: var(--grad-soft); color: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; z-index: 1;
}
.memo-body { padding-top: 4px; flex: 1; min-width: 0; }
.memo-content {
  font-size: 14px; line-height: 1.6; word-break: break-word;
  white-space: pre-wrap; max-height: 160px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical;
}
.note-excerpt {
  margin-top: 6px; font-size: 13px; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== 日历模块 ========== */
.calendar-section {
  max-width: 560px; margin: 0 auto;
}
.calendar-container {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.calendar-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; justify-content: center;
}
.calendar-header h2 {
  font-size: 16px; font-weight: 700; min-width: 120px; text-align: center;
}
.cal-nav-btn {
  border: none; background: var(--grad-soft); color: var(--pink);
  width: 32px; height: 32px; border-radius: 8px;
  font-size: 14px; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { background: var(--pink); color: #fff; }
.calendar-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 8px;
}
.calendar-weekdays div {
  text-align: center; font-size: 12px; color: var(--text-3);
  padding: 6px 0; font-weight: 600;
}
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal-day {
  min-height: 72px; display: flex; flex-direction: column; align-items: stretch;
  justify-content: flex-start; gap: 2px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all .15s; color: var(--text);
  position: relative; padding: 4px 5px; overflow: hidden;
}
.cal-day-num { font-size: 14px; font-weight: 500; line-height: 1.2; }
.cal-day:hover { background: var(--grad-soft); }
.cal-day.cal-today {
  background: var(--grad); color: #fff; font-weight: 700;
  box-shadow: 0 2px 8px rgba(46, 142, 139, .3);
}
.cal-day.cal-today .cal-day-num { color: #fff; font-weight: 700; }
.cal-day.cal-has-todo::after {
  content: "";
  position: absolute; top: 6px; right: 6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--orange);
}
.cal-day.cal-today.cal-has-todo::after { background: #fff; }
.cal-empty { min-height: 72px; }
.cal-todo-preview {
  margin-top: 16px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px;
}
.cal-preview-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cal-preview-list { display: flex; flex-direction: column; gap: 8px; }
.cal-preview-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 10px;
  background: var(--grad-soft); font-size: 13px;
  cursor: pointer; transition: background .15s;
}
.cal-preview-item:hover {
  background: #d5ede8;
}
.cal-preview-item.done { opacity: .6; }
.cal-preview-item.done .cal-preview-title { text-decoration: line-through; }
.cal-preview-title { flex: 1; min-width: 0; word-break: break-word; }
.cal-preview-prio {
  font-size: 11px; padding: 2px 8px; border-radius: 8px;
  font-weight: 600; margin-left: 8px; flex-shrink: 0;
}
/* CalDAV（钉钉）事件分色 */
.cal-day-events { display: flex; flex-direction: column; gap: 2px; margin-top: 1px; }
.cal-evt {
  display: block; font-size: 10px; line-height: 1.3; color: #fff;
  padding: 1px 5px; border-radius: 5px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 100%;
}
.cal-evt-more { font-size: 10px; color: var(--muted, #9aa3ad); padding-left: 2px; }
.cal-legend {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px;
  font-size: 12px; color: var(--text); align-items: center;
}
.cal-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
/* 当日预览：分组（待办 + 钉钉日程） */
.cal-preview-group { margin-bottom: 12px; }
.cal-preview-group:last-child { margin-bottom: 0; }
.cal-preview-gtitle {
  font-size: 12px; font-weight: 700; color: var(--muted, #9aa3ad);
  margin-bottom: 6px;
}
.cal-evt-row { gap: 2px; }
.cal-evt-row .cal-preview-time {
  font-size: 12px; color: var(--muted, #9aa3ad); margin: 0 8px; flex-shrink: 0;
}
.notes-view-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 14px; line-height: 1.5; }
.notes-view-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.notes-view-head .notes-view-title { margin-bottom: 0; flex: 1; min-width: 0; }
.note-rename-box { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.note-rename-box .input { flex: 1; min-width: 200px; }
.notes-view-content {
  font-size: 15px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  color: var(--text); min-height: 60px;
}
.notes-view-content h1, .notes-view-content h2, .notes-view-content h3 { margin: 14px 0 8px; line-height: 1.4; }
.notes-view-content ul, .notes-view-content ol { padding-left: 22px; margin: 8px 0; }
.notes-view-content li { margin: 4px 0; }
.notes-view-content code { background: #F2F2F2; border-radius: 5px; padding: 1px 6px; font-size: 13px; }
.notes-view-content pre { background: #F7FBFA; border: 1px solid var(--border); border-radius: 10px; padding: 12px; overflow-x: auto; }
.notes-view-content table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13px; }
.notes-view-content th, .notes-view-content td { border: 1px solid var(--border-strong); padding: 6px 10px; text-align: left; }

/* 搜索命中页定位 */
.note-hits {
  margin-top: 8px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg-soft, #F6F9F8); font-size: 12px;
}
.hit-badge { display: inline-block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.hit-summary { color: var(--text-2); }
.hit-snippet {
  color: var(--text-2); line-height: 1.6; word-break: break-all;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hit-snippet mark, .hit-text mark { background: #FFF1A8; color: inherit; border-radius: 3px; padding: 0 1px; }
.hit-jump {
  margin-top: 6px; display: inline-block; border: none; cursor: pointer; text-decoration: none;
  background: var(--grad); color: #fff; border-radius: 6px; padding: 3px 10px; font-size: 12px;
}
.hit-jump:hover { opacity: 0.88; }

/* 笔记详情：按页原文 + 命中定位 */
.notes-view-pages { margin-top: 16px; }
.hits-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.page-block {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
  background: #FBFCFC;
}
.page-block.hit { border-color: var(--accent, #2E8B7F); background: #F1FAF7; box-shadow: 0 0 0 2px rgba(46,139,127,.10); }
.page-block.flash { animation: page-flash 2.2s ease; }
@keyframes page-flash {
  0% { background: #FFF3C4; border-color: #E6B800; }
  100% { background: #F1FAF7; }
}
.page-head {
  font-size: 12px; font-weight: 700; color: var(--accent, #2E8B7F); margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.page-hit-tag {
  font-size: 10px; font-weight: 600; color: #fff; background: #E6B800;
  border-radius: 999px; padding: 1px 7px;
}
.page-text {
  font-size: 13px; color: var(--text); line-height: 1.75; word-break: break-word;
  white-space: pre-wrap; max-height: 260px; overflow-y: auto;
}
.page-text mark { background: #FFF1A8; color: inherit; border-radius: 3px; padding: 0 1px; }
.page-empty { color: var(--text-3); }

/* 模块内联提示 + 链接按钮 */
.module-hint {
  font-size: 13px; color: var(--text-2); background: var(--bg-soft, #F6F9F8);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px;
}
.link-btn {
  border: none; background: none; cursor: pointer; color: var(--accent, #2E8B7F);
  font-weight: 600; padding: 0; font-size: inherit; text-decoration: underline;
}
.link-btn:hover { opacity: .85; }

/* 设置抽屉 */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer-mask { position: absolute; inset: 0; background: rgba(15,23,32,.42); }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 440px; max-width: 94vw;
  background: var(--bg, #fff); box-shadow: -6px 0 24px rgba(0,0,0,.12);
  padding: 18px 20px; overflow-y: auto;
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.drawer-head h3 { font-size: 18px; margin: 0; }
.drawer-hint { font-size: 12.5px; color: var(--text-2); background: var(--bg-soft,#F6F9F8); border-radius: 10px; padding: 10px 12px; margin: 0 0 16px; line-height: 1.7; }
.conn-section { margin-bottom: 22px; }
.conn-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.conn-section-head h4 { font-size: 15px; margin: 0; }
.conn-list { display: flex; flex-direction: column; gap: 10px; }
.conn-empty { font-size: 13px; color: var(--text-3); background: var(--bg-soft,#F6F9F8); border: 1px dashed var(--border); border-radius: 10px; padding: 12px; line-height: 1.7; }
.conn-card {
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 13px; background: #fff;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between;
}
.conn-main { min-width: 0; flex: 1 1 60%; }
.conn-name { font-weight: 600; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.conn-url { font-size: 12px; color: var(--text-3); word-break: break-all; margin-top: 2px; }
.conn-meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.conn-field { font-size: 12.5px; color: var(--text); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.conn-field .field-label { color: var(--text-3); min-width: 56px; }
.conn-field .pwd { background: var(--bg-2, #f3f4f6); padding: 1px 6px; border-radius: 4px; font-size: 12px; word-break: break-all; }
.conn-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.conn-msg { flex-basis: 100%; font-size: 12px; color: var(--accent, #2E8B7F); min-height: 14px; }
.badge {
  font-size: 10px; font-weight: 600; color: #fff; background: var(--accent, #2E8B7F);
  border-radius: 999px; padding: 1px 7px;
}
.btn-xs { font-size: 12px; padding: 4px 9px; border-radius: 7px; }
.btn-xs.danger { color: #c0392b; border-color: #f0c6c0; }
.btn-xs.danger:hover { background: #fdecea; }

/* 连接编辑表单（抽屉内） */
.conn-form {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-top: 4px;
  background: var(--bg-soft,#F6F9F8);
}
.conn-form.hidden { display: none; }
.conn-form h4 { margin: 0 0 10px; font-size: 14px; }
.conn-form label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.conn-form label input {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
}
.conn-form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.conn-form .hint { margin-top: 8px; color: var(--text-3); }

/* 笔记同步操作指导（抽屉内） */
.conn-guide {
  margin: 12px 0 4px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-soft, #F6F9F8); padding: 10px 14px;
}
.conn-guide summary {
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--purple, #205C5A);
  list-style: none; user-select: none;
}
.conn-guide summary::-webkit-details-marker { display: none; }
.conn-guide[open] summary { margin-bottom: 8px; }
.conn-guide ol { margin: 4px 0 6px 18px; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.conn-guide ol li { margin-bottom: 6px; }
.conn-guide a { color: var(--accent, #2E8B7F); font-weight: 600; text-decoration: underline; }
.guide-warn {
  font-size: 12px; color: #9a5b1e; background: var(--orange-bg, #FFF4E3);
  border-radius: 8px; padding: 8px 10px; margin: 6px 0 2px; line-height: 1.6;
}

/* 服务器托管 WebDAV 账号（方案B） */
.wd-server { margin: 10px 0 4px; }
.wd-account-card { margin: 8px 0; }
.wd-account-card .pwd,
.wd-admin .pwd {
  display: inline-block; background: #f1f3f5; color: #1b1f23;
  padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; word-break: break-all; margin: 0 4px;
}
.badge-server { background: var(--accent, #2E8B7F); color: #fff; border-color: transparent; }
.badge-warn { background: #e8633a; color: #fff; border-color: transparent; }
/* 配额用量条（方案B：单用户 1G 配额提醒） */
.quota-row { margin: 6px 0 2px; }
.quota-bar { height: 8px; border-radius: 999px; background: #e9ecef; overflow: hidden; margin-bottom: 4px; }
.quota-fill { height: 100%; border-radius: 999px; transition: width .4s ease; }
.quota-fill.quota-ok { background: var(--accent, #2E8B7F); }
.quota-fill.quota-warn { background: #e8a33a; }
.quota-fill.quota-full { background: #e2483a; }
.quota-warn-text { color: #e2483a; font-weight: 600; margin-left: 2px; }
/* 全局配额提醒横幅（覆盖所有模块，配额满/将满时显示） */
.wd-quota-banner { margin: 10px 14px 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.wd-quota-warn { background: #fff4e3; color: #9a5b1e; border: 1px solid #f3d399; }
.wd-quota-full { background: #fdecea; color: #b3261e; border: 1px solid #f5b5af; }
/* 设置按钮上的待审核角标 */
#settings-btn { position: relative; }
.badge-pending {
  position: absolute; top: -7px; right: -7px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: #e8633a; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg, #fff);
}
.wd-admin {
  margin-top: 12px; border-top: 1px dashed var(--border, #e5e7eb); padding-top: 10px;
}
.wd-admin h5 { margin: 2px 0 8px; font-size: 13px; color: var(--text-2); }

/* 忘记密码链接（登录页） */
.pwd-forgot-link { display: block; text-align: center; margin-top: 10px; font-size: 12px; color: var(--text-3); cursor: pointer; }
.pwd-forgot-link:hover { color: var(--pink); }

/* 管理员密码重置 */
.pwdreset-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.pwdreset-row .input { flex: 1 1 120px; min-width: 0; }

/* 用量统计（埋点聚合，仅管理员可见） */
.muted { color: var(--text-3); font-size: 12px; }
.usage-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 8px; }
.usage-table th, .usage-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.usage-table th { color: var(--text-3); font-weight: 600; font-size: 12px; }
.usage-table td { color: var(--text); }
.usage-sub { font-size: 12px; color: var(--text-2); margin: 10px 0 6px; font-weight: 600; }
.usage-bars { display: flex; flex-direction: column; gap: 6px; }
.usage-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.usage-k { flex: 0 0 56px; color: var(--text-2); }
.usage-bar { flex: 1; height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; }
.usage-bar > i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.usage-v { flex: 0 0 32px; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

/* ========== 个人资料设置 ========== */
.profile-form { background: var(--bg-soft, #F6F9F8); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.profile-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 10px; }
.profile-label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-2); flex: 1; min-width: 140px; }
.profile-label input[type="date"],
.profile-label select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; background: #fff; min-width: 120px; }
.profile-label select { cursor: pointer; }

/* 开关样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 24px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .toggle-slider {
  background-color: var(--pink);
}
input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* ========== 退休倒计时 Banner ========== */
.retirement-banner {
  background: linear-gradient(135deg, #FF9A56 0%, #FF6B6B 100%);
  color: #fff;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}
.retirement-banner.retirement-done {
  background: linear-gradient(135deg, #56CCF2 0%, #2F80ED 100%);
  box-shadow: 0 4px 12px rgba(47, 128, 237, 0.25);
}
.retirement-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.retirement-icon { font-size: 18px; }
.retirement-text b { font-weight: 700; }
.retirement-close {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== 今日日程卡片 ========== */
.today-schedule {
  background: var(--bg-soft, #F6F9F8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.today-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.today-schedule-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.schedule-highlight {
  background: linear-gradient(135deg, #fff3cd, #ffe8a1);
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #856404;
}
.schedule-section {
  margin-bottom: 10px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-tertiary, #e8edf2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schedule-list li {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.schedule-time {
  font-weight: 600;
  color: var(--primary);
  margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

/* ========== 图片上传按钮 ========== */
#image-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.retirement-close:hover { background: rgba(255, 255, 255, 0.4); }

/* ========== 网易云音乐空间 ========== */
.music-section { display: flex; flex-direction: column; gap: 16px; }
.music-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.music-toolbar h2 { font-size: 18px; color: var(--text); font-weight: 700; }
.music-toolbar .hint { font-size: 12px; color: var(--text-3); }
.music-loader { display: flex; gap: 10px; flex-wrap: wrap; }
.music-loader .input { flex: 1; min-width: 220px; }
.music-presets { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.presets-label { font-size: 13px; color: var(--text-2); font-weight: 600; padding-top: 6px; white-space: nowrap; }
.preset-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border-strong);
  padding: 7px 12px; border-radius: 20px; font-size: 13px; color: var(--text-2);
  cursor: pointer; transition: all .2s;
}
.preset-chip:hover { color: var(--pink); border-color: var(--pink); background: var(--grad-soft); }
.preset-chip .chip-del { color: var(--text-3); font-size: 14px; line-height: 1; margin-left: 2px; }
.preset-chip .chip-del:hover { color: var(--red); }
.music-tip { min-height: 16px; }

/* 常驻播放器条 */
.music-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(0,0,0,.08);
}
.music-bar-head {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; max-width: 1280px; margin: 0 auto;
}
.mb-icon { color: var(--pink); display: inline-flex; }
.mb-icon .mt-icon { width: 18px; height: 18px; }
.mb-now { font-size: 13px; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.music-bar-body { display: none; padding: 0 18px 12px; max-width: 1280px; margin: 0 auto; }
.music-bar.expanded .music-bar-body { display: block; }
.music-bar #music-toggle { transition: transform .2s; }
.music-bar.expanded #music-toggle { transform: rotate(180deg); }
.music-iframe { width: 100%; height: 86px; border: 0; display: block; background: #f7f7f7; border-radius: 8px; overflow: hidden; }
/* 播放器整体关闭 */
.music-bar.hidden { display: none; }
.music-reopen {
  position: fixed; right: 16px; bottom: 16px; z-index: 31;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border: 0; border-radius: 999px;
  background: var(--pink); color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); font-weight: 600; font-size: 13px;
}
.music-reopen:hover { filter: brightness(1.05); }
.music-reopen.hidden { display: none; }

/* 主内容底部留白，避免被常驻播放器遮挡 */
body.music-on { padding-bottom: 56px; }

@media (max-width: 720px) {
  .mb-now { max-width: 38vw; }
  .music-bar-head { padding: 8px 12px; }
}

/* ICP 备案号栏 */
.icp-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; font-size: 12px; color: var(--text-3, #9aa3ad);
  border-top: 1px solid var(--border, #e4e8ed); margin-top: 16px;
}
.icp-bar a { color: var(--text-3, #9aa3ad); text-decoration: none; }
.icp-bar a:hover { color: var(--purple, #7c5cfc); }
/* 登录页底部 ICP */
.login-icp { margin-top: 24px; text-align: center; width: 100%; max-width: 720px; }

