:root {
  --blue: #0a84ff;
  --bg: #f5f5f7;
  --sidebar: rgba(245, 245, 247, .88);
  --card: #fff;
  --ink: #1d1d1f;
  --muted: #86868b;
  --line: rgba(60, 60, 67, .14);
  --danger: #ff453a;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(10, 132, 255, .32); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 310px; flex: 0 0 310px; padding: 27px 18px 18px; background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 100vh; }
.sidebar-top, .content-header, .section-heading, .task-row, .task-main, .task-meta, .modal-header, .modal-actions { display: flex; align-items: center; }
.sidebar-top { justify-content: space-between; padding: 0 5px 24px; }
h1 { font-size: 28px; letter-spacing: -.7px; margin: 0; }
h2, h3, p { margin-top: 0; }
.more-button, .icon-button, .text-button, .add-list-row, .smart-card, .list-item, .add-task-button { border: 0; background: transparent; color: inherit; }
.more-button { font-weight: 800; letter-spacing: 2px; font-size: 16px; padding: 4px; color: var(--muted); }
.icon-button { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 21px; color: var(--blue); }
.icon-button:hover { background: rgba(120, 120, 128, .12); }
.mobile-menu-close, .menu-button { display: none; }

.smart-lists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.smart-card { min-height: 102px; padding: 13px; border-radius: 14px; background: rgba(255,255,255,.75); text-align: left; display: grid; grid-template-columns: 1fr auto; align-content: space-between; transition: transform .18s, box-shadow .18s; }
.smart-card:hover, .smart-card.active { box-shadow: 0 4px 15px rgba(0,0,0,.07); transform: translateY(-1px); }
.smart-card:nth-child(5) { grid-column: 1 / -1; }
.smart-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; font-weight: 700; color: #fff; background: var(--blue); }
.calendar-icon { background: #fff; color: var(--danger); border: 1px solid rgba(0,0,0,.07); font-size: 14px; position: relative; overflow: hidden; }
.calendar-icon::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: var(--danger); }
.calendar-icon strong { z-index: 1; margin-top: 8px; }
.scheduled-card .smart-icon { background: #ff453a; }.all-card .smart-icon { background: #86868b; }.flagged-card .smart-icon { background: #ff9f0a; }.completed-card .smart-icon { background: #30d158; }
.smart-card-label { grid-column: 1; align-self: end; font-weight: 650; font-size: 14px; }.count { align-self: end; color: var(--muted); font-weight: 600; }
.my-lists { margin-top: 29px; }.section-heading { justify-content: space-between; padding: 0 7px 9px; }.section-heading h2 { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .2px; margin: 0; }.text-button { color: var(--blue); font-size: 13px; padding: 2px; }
.list-navigation { display: grid; gap: 2px; }.list-item { width: 100%; padding: 9px 8px; border-radius: 8px; display: grid; grid-template-columns: 26px 1fr auto; gap: 7px; align-items: center; text-align: left; font-size: 15px; }.list-item:hover, .list-item.active { background: rgba(120,120,128,.13); }.list-dot { width: 20px; height: 20px; border-radius: 50%; color: white; display: grid; place-items: center; font-size: 12px; }.list-item .count { font-size: 13px; }
.add-list-row { margin-top: auto; padding: 16px 7px 3px; color: var(--blue); font-size: 15px; text-align: left; }.add-list-row span, .add-task-button span { font-size: 22px; vertical-align: -2px; line-height: 0; }

.content { flex: 1; min-width: 0; background: linear-gradient(150deg, #fff 0%, #fafafd 100%); padding: 48px clamp(25px, 6vw, 92px) 100px; position: relative; }.content-header { gap: 14px; padding-bottom: 26px; }.content-header > div { flex: 1; }.content-header h2 { font-size: clamp(32px, 4vw, 42px); letter-spacing: -1.3px; margin: 0; }.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 5px; }.content-more { color: var(--blue); }
.task-groups { max-width: 780px; }.task-group + .task-group { margin-top: 25px; }.group-title { color: var(--muted); font-size: 13px; font-weight: 700; margin: 0 0 7px 2px; }.task-list { background: rgba(255,255,255,.78); border: 1px solid rgba(60,60,67,.08); border-radius: 12px; overflow: hidden; box-shadow: 0 3px 14px rgba(0,0,0,.025); }.task-row { width: 100%; min-height: 67px; gap: 12px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; transition: background .15s; }.task-row:last-child { border-bottom: 0; }.task-row:hover { background: rgba(10,132,255,.045); }.task-toggle { border: 1.5px solid #b6b6bb; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #fff; color: #fff; display: grid; place-items: center; font-size: 14px; }.task-toggle.done { background: var(--blue); border-color: var(--blue); }.task-main { min-width: 0; flex: 1; justify-content: space-between; gap: 10px; }.task-copy { min-width: 0; }.task-name { font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-notes { margin-top: 3px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.task-meta { gap: 6px; flex: 0 0 auto; color: var(--muted); font-size: 12px; }.due-date.overdue { color: var(--danger); }.priority { color: var(--danger); font-weight: 800; }.task-flag { border: 0; background: transparent; color: #c7c7cc; padding: 5px; font-size: 18px; }.task-flag.active { color: #ff9f0a; }.task-delete { border: 0; background: transparent; color: transparent; padding: 5px; font-size: 18px; transition: color .15s; }.task-row:hover .task-delete { color: var(--muted); }.task-delete:hover { color: var(--danger) !important; }.task-row.completed .task-name, .task-row.completed .task-notes { color: #a1a1a6; text-decoration: line-through; }.task-row.completed .task-notes { text-decoration: none; }
.new-reminder-bar { position: fixed; bottom: 0; left: 310px; right: 0; height: 72px; padding: 13px clamp(25px, 6vw, 92px); background: rgba(255,255,255,.85); backdrop-filter: blur(15px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }.add-task-button { color: var(--blue); font-size: 16px; font-weight: 600; padding: 8px 0; }.flag-outline { font-size: 21px; }
.empty-state { text-align: center; margin: 90px auto; color: var(--muted); }.empty-illustration { width: 54px; height: 54px; margin: 0 auto 15px; border-radius: 50%; display: grid; place-items: center; color: white; background: #30d158; font-size: 26px; }.empty-state h3 { color: var(--ink); margin-bottom: 5px; }.empty-state p { margin: 0; font-size: 14px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; padding: 20px; background: rgba(0,0,0,.27); display: grid; place-items: center; backdrop-filter: blur(3px); }.modal-card { width: min(100%, 455px); border-radius: 16px; background: #fff; padding: 21px; box-shadow: 0 18px 60px rgba(0,0,0,.22); }.modal-header { justify-content: space-between; margin-bottom: 18px; }.modal-header h2 { font-size: 20px; margin: 0; }.close-modal { color: var(--muted); font-size: 28px; }.field-label { display: block; margin: 13px 0 6px; font-size: 13px; color: var(--muted); }input[type="text"], textarea, select, input[type="date"] { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fafafa; padding: 10px 11px; color: var(--ink); }textarea { resize: vertical; }.task-title-input { font-size: 17px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }.form-grid label { color: var(--muted); font-size: 13px; }.form-grid input, .form-grid select { margin-top: 6px; }.flag-setting { display: flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 14px; }.flag-setting input { accent-color: var(--blue); }.modal-actions { justify-content: flex-end; gap: 10px; margin-top: 23px; }.button-primary, .button-secondary { border: 0; border-radius: 9px; padding: 8px 16px; font-weight: 600; }.button-primary { background: var(--blue); color: #fff; }.button-secondary { background: #e9e9ed; color: var(--ink); }.list-icon-preview { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 4px; color: #fff; background: var(--blue); font-size: 24px; }

@media (max-width: 760px) { .sidebar { position: fixed; z-index: 9; inset: 0 auto 0 0; width: min(310px, 88vw); transform: translateX(-102%); transition: transform .25s ease; box-shadow: 18px 0 42px rgba(0,0,0,.16); }.sidebar.open { transform: translateX(0); }.mobile-menu-close, .menu-button { display: grid; }.sidebar-top { padding-left: 0; }.sidebar-top h1 { margin-right: auto; }.content { padding: 28px 18px 90px; }.content-header { padding-bottom: 19px; }.content-header h2 { font-size: 34px; }.new-reminder-bar { left: 0; height: 68px; padding: 11px 18px; }.task-row { padding: 10px; }.task-meta { align-self: flex-start; margin-top: 2px; }.task-flag { display: none; } }
@media (max-width: 380px) { .smart-card { min-height: 88px; padding: 10px; }.content { padding-left: 14px; padding-right: 14px; }.form-grid { grid-template-columns: 1fr; gap: 9px; } }

/* 下拉菜单 */
.dropdown-container { position: relative; }
.dropdown-menu { position: absolute; top: 100%; right: 0; margin-top: 6px; min-width: 180px; background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15); border: 1px solid var(--line); z-index: 20; padding: 6px; overflow: hidden; }
.dropdown-item { width: 100%; padding: 9px 12px; border: 0; background: transparent; text-align: left; font-size: 14px; border-radius: 6px; color: var(--ink); }
.dropdown-item:hover { background: rgba(10,132,255,.08); color: var(--blue); }

/* 搜索框 */
.search-container { margin-bottom: 12px; }
.search-input { width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.8); font-size: 14px; }
.search-input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* 关于弹窗 */
.about-content { text-align: center; padding: 10px 0 20px; }
.about-icon { font-size: 48px; margin-bottom: 12px; }
.about-content h3 { font-size: 20px; margin-bottom: 6px; }
.about-content > p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.about-stats { display: flex; justify-content: center; gap: 32px; margin: 20px 0; }
.stat-item { text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--blue); }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.about-hint { font-size: 13px; color: var(--muted); font-style: italic; }
