/* ==========================================================================
   个人网站 · 全局样式
   结构：变量 → 基础重置 → 导航栏 → 页面头部 → 卡片/网格 → 按钮/标签
        → 首页特色 → 表单 → 页脚 → 动效 → 响应式
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --text: #1a2233;
  --text-muted: #5b6472;
  --border: #e6e9f0;

  --primary: #4f46e5;
  --primary-strong: #4338ca;
  --primary-soft: #eef0ff;
  --accent: #7c3aed;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #c026d3 100%);

  --green: #0f9d6a;
  --green-soft: #e6f7f0;
  --orange: #e8790f;
  --orange-soft: #fdf0e0;
  --blue: #2563eb;
  --blue-soft: #e8f0fe;
  --pink: #db2777;
  --pink-soft: #fde7f1;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .12);

  --header-h: 68px;
  --maxw: 1180px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

[data-theme="dark"] {
  --bg: #0e1116;
  --surface: #171b22;
  --surface-2: #1f242d;
  --text: #e7eaf0;
  --text-muted: #9aa3b2;
  --border: #2a303b;
  --primary-soft: #232849;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
  --green-soft: #123529;
  --orange-soft: #3a2714;
  --blue-soft: #14253f;
  --pink-soft: #3a1730;
}

/* ---------- 2. 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-strong); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

main { min-height: 60vh; padding-bottom: 72px; }

/* ---------- 3. 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.brand .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: .94rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-links a svg { width: 17px; height: 17px; flex: none; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .35);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.icon-btn:hover { color: var(--text); border-color: var(--primary); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* ---------- 4. 页面头部（子页 Hero） ---------- */
.page-hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(1200px 400px at 15% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%),
    radial-gradient(1000px 360px at 90% -20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0; }

/* ---------- 5. 卡片 / 网格 ---------- */
.section { margin-top: 40px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  margin-bottom: 18px;
}
.section-title .bar {
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--gradient);
}

.grid {
  display: grid;
  gap: 18px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.card-head .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.card-head .icon svg { width: 22px; height: 22px; }

/* 标签配色 */
.tone-indigo { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.tone-green  { background: linear-gradient(135deg, #059669, #10b981); }
.tone-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.tone-blue   { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tone-pink   { background: linear-gradient(135deg, #db2777, #f472b6); }
.tone-slate  { background: linear-gradient(135deg, #475569, #64748b); }

.tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  margin: 0 6px 6px 0;
}
.tag.green  { background: var(--green-soft); color: var(--green); }
.tag.orange { background: var(--orange-soft); color: var(--orange); }
.tag.blue   { background: var(--blue-soft); color: var(--blue); }
.tag.pink   { background: var(--pink-soft); color: var(--pink); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(79, 70, 229, .4); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 7. 首页特色 ---------- */
.hero {
  padding: 84px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { font-size: 1.12rem; color: var(--text-muted); max-width: 620px; margin-bottom: 28px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 420px at 80% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%),
    radial-gradient(700px 380px at 10% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.1;
}
.stat .label { color: var(--text-muted); font-size: .9rem; }

/* ---------- 8. 书签筛选 ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.search-box {
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.search-box svg { width: 18px; height: 18px; color: var(--text-muted); }
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: .95rem;
  width: 100%;
}
.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--gradient); color: #fff; border-color: transparent; }

.bookmark-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  margin-bottom: 12px;
  transition: all var(--transition);
}
.bookmark-item:hover { border-color: var(--primary); transform: translateX(3px); }
.bookmark-item .fav {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex: none;
}
.bookmark-item .info { min-width: 0; }
.bookmark-item .info strong { display: block; font-size: .98rem; }
.bookmark-item .info span {
  display: block;
  color: var(--text-muted);
  font-size: .82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bookmark-item .arrow { margin-left: auto; color: var(--text-muted); flex: none; }
.bookmark-item .arrow svg { width: 18px; height: 18px; }
.hidden { display: none !important; }

/* ---------- 9. 列表项（博文/软件） ---------- */
.post-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 16px;
  transition: all var(--transition);
}
.post-item:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-item .date {
  flex: none;
  min-width: 64px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}
.post-item .date .d { font-size: 1.4rem; display: block; line-height: 1; }
.post-item .date .m { font-size: .78rem; }
.post-item h3 { margin-bottom: 6px; }
.post-item h3 a { color: var(--text); }
.post-item h3 a:hover { color: var(--primary); }
.post-item .desc { color: var(--text-muted); font-size: .92rem; margin-bottom: 10px; }

.meta { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .84rem; flex-wrap: wrap; }
.meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* ---------- 10. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--surface);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .copy { color: var(--text-muted); font-size: .88rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .88rem; }
.footer-links a:hover { color: var(--primary); }

/* ---------- 12. 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    margin-left: auto;
  }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 20px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { justify-content: center; padding: 12px; }
  .nav-links a.active { box-shadow: none; }

  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 48px; }
  .page-hero { padding: 40px 0 32px; }
  .post-item { flex-direction: column; }
  .post-item .date { min-width: 100%; text-align: left; }
}

/* ==========================================================================
   时间管理页（time.html）专用样式
   包含：番茄时钟、待办事项、弹窗、轻提示
   ========================================================================== */

/* ---------- 左右两栏布局（桌面端：左番茄、右待办） ---------- */
.tm-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  align-items: start;
}

/* ---------- 小号按钮 ---------- */
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }

/* ---------- 番茄时钟 ---------- */
.pomodoro-card { text-align: center; position: relative; padding-bottom: 60px; }
.pomodoro-card .section-title { justify-content: center; }

/* 右下角「全屏」按钮 */
.focus-btn {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid transparent; font-size: .84rem; font-weight: 600;
  transition: all var(--transition);
}
.focus-btn:hover { background: var(--primary); color: #fff; }
.focus-btn svg { width: 16px; height: 16px; }

/* 圆形进度环 */
.pomo-ring { position: relative; width: 280px; height: 280px; margin: 0 auto 18px; }
.pomo-ring svg { transform: rotate(-90deg); display: block; }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.ring-progress {
  fill: none; stroke: url(#pomoGrad); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset .5s linear;
}
/* 运行时给进度环加一点发光效果 */
.pomo-ring.ticking .ring-progress { filter: drop-shadow(0 0 8px rgba(124, 58, 237, .45)); }

/* 圆环中心的时间与状态文字 */
.pomo-time { position: absolute; inset: 0; display: grid; place-content: center; }
.pomo-time .time {
  font-size: 3.4rem; font-weight: 800; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.pomo-time .state { color: var(--text-muted); font-size: .92rem; margin-top: 8px; }

.pomo-adjust { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.pomo-adjust-tip { color: var(--text-muted); font-size: .82rem; }

.pomo-controls { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; }
.pomo-today { font-size: .9rem; color: var(--text-muted); margin-bottom: 8px; }
.pomo-today strong { color: var(--primary); font-size: 1.05rem; }
.pomo-hint { font-size: .76rem; color: var(--text-muted); opacity: .75; max-width: 340px; margin: 0 auto; }

/* 超时持续计时时，时间文字变橙色提示 */
.pomo-ring.overtime .time { color: var(--orange); }

/* ---------- 全屏专注覆盖层 ---------- */
.focus-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: radial-gradient(1200px 800px at 50% 28%, #1e1b4b 0%, #0b1020 70%);
  display: none; align-items: center; justify-content: center;
  padding: 88px 24px 32px;
}
.focus-overlay.open { display: flex; }
.focus-stage { width: 100%; max-width: 640px; display: flex; justify-content: center; }
/* 覆盖层里的时钟卡片：宽度拉满、居中，白底在深色背景上更醒目 */
.focus-overlay .pomodoro-card { width: 100%; max-width: 520px; }
.focus-exit {
  position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 500; transition: background var(--transition);
}
.focus-exit:hover { background: rgba(255, 255, 255, .22); }
.focus-exit svg { width: 18px; height: 18px; }
/* 全屏专注时锁定页面滚动 */
body.focus-active { overflow: hidden; }

/* ---------- 待办事项 ---------- */
.todo-card { display: flex; flex-direction: column; }
.todo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.todo-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }

/* 表单：新增 / 编辑待办 */
.todo-form-row { display: flex; gap: 8px; flex-wrap: wrap; }
.todo-form-row input[type="text"] { flex: 1 1 160px; }
#todo-note { width: 100%; margin-top: 8px; }

/* 输入框、下拉框统一样式（作用域限定在待办卡片和弹窗内，避免影响书签搜索框） */
.todo-card input[type="text"], .todo-card input[type="password"], .todo-card select,
.modal input[type="text"], .modal input[type="password"] {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: .92rem;
  outline: none; transition: border-color var(--transition);
}
.todo-card input:focus, .todo-card select:focus, .modal input:focus { border-color: var(--primary); }

/* 过滤器 */
.todo-filters { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; }
.todo-filter {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  padding: 5px 14px; border-radius: 999px; font-size: .85rem; cursor: pointer;
  transition: all var(--transition);
}
.todo-filter:hover { border-color: var(--primary); color: var(--primary); }
.todo-filter.active { background: var(--gradient); color: #fff; border-color: transparent; }
.todo-count { margin-left: auto; color: var(--text-muted); font-size: .84rem; }

/* 待办列表 */
.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); transition: all var(--transition);
}
.todo-item:hover { border-color: var(--primary); }
.todo-item.done { opacity: .55; }
.todo-item.done .todo-title { text-decoration: line-through; }

/* 完成勾选框 */
.todo-check {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  border: 2px solid var(--border); border-radius: 50%;
  background: transparent; cursor: pointer; transition: all var(--transition);
}
.todo-check:hover { border-color: var(--primary); }
.todo-item.done .todo-check { background: var(--gradient); border-color: transparent; position: relative; }
/* 用伪元素画一个白色对勾 */
.todo-item.done .todo-check::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.todo-body { flex: 1; min-width: 0; }
.todo-title { font-weight: 600; word-break: break-word; }
.todo-note { color: var(--text-muted); font-size: .85rem; margin-top: 2px; word-break: break-word; }
.todo-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.todo-date { color: var(--text-muted); font-size: .76rem; }
.todo-meta .tag { margin: 0; }

.todo-actions { display: flex; gap: 6px; flex: none; }
.todo-btn {
  border: none; background: transparent; color: var(--primary);
  font-size: .82rem; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.todo-btn:hover { background: var(--primary-soft); }
.todo-btn.danger { color: #dc2626; }
.todo-btn.danger:hover { background: #fde8e8; }

/* 优先级标签配色 */
.priority-high { background: #fde8e8; color: #dc2626; }
.priority-medium { background: var(--orange-soft); color: var(--orange); }
.priority-low { background: var(--blue-soft); color: var(--blue); }
[data-theme="dark"] .priority-high { background: #3a1720; color: #f87171; }

.todo-empty { text-align: center; color: var(--text-muted); padding: 30px 0; font-size: .9rem; }

/* 云同步操作条 */
.todo-sync-bar {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.auto-sync-label { font-size: .84rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.todo-sync-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 弹窗（Modal） ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 18, 25, .55); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
  background: var(--surface); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-lg);
}
.modal h3 { font-size: 1.2rem; }
.modal-tip { font-size: .84rem; color: var(--text-muted); margin-bottom: 16px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: .84rem; color: var(--text-muted); margin-bottom: 5px; }
.form-group input { width: 100%; }
.wd-test-result { font-size: .84rem; margin: 4px 0 12px; min-height: 1.2em; }
.wd-test-result.success { color: var(--green); }
.wd-test-result.error { color: #dc2626; }
.wd-test-result.info { color: var(--text-muted); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- 轻提示（Toast） ---------- */
.toast-wrap {
  position: fixed; top: 20px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px; max-width: 320px;
}
.toast {
  padding: 11px 16px; border-radius: 12px; background: var(--surface);
  color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: .88rem; opacity: 0; transform: translateY(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.show { opacity: 1; transform: none; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid #dc2626; }
.toast.info { border-left: 4px solid var(--blue); }

/* ---------- 时间管理页响应式 ---------- */
@media (max-width: 960px) {
  .tm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pomo-ring { width: 240px; height: 240px; }
  .pomo-ring svg { width: 240px; height: 240px; }
  .pomo-time .time { font-size: 2.8rem; }
  .todo-head { flex-direction: column; align-items: flex-start; }
}
