body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; margin: 0; background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 52%, #f8f5ff 100%); color: #1f2937; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
.modern-header { margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.brand-block { display: flex; align-items: center; gap: 14px; }
.brand-avatar-wreath { position: relative; width: 78px; height: 78px; display: flex; align-items: center; justify-content: center; }
.brand-avatar-wreath::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background:
  radial-gradient(circle at 50% 6%, #ff6fae 0 5px, transparent 5.5px),
  radial-gradient(circle at 74% 12%, #ffd84d 0 4.5px, transparent 5px),
  radial-gradient(circle at 90% 30%, #7cc6ff 0 5px, transparent 5.5px),
  radial-gradient(circle at 94% 54%, #a78bfa 0 4.5px, transparent 5px),
  radial-gradient(circle at 82% 78%, #4ade80 0 5px, transparent 5.5px),
  radial-gradient(circle at 58% 92%, #ffd166 0 4.5px, transparent 5px),
  radial-gradient(circle at 34% 92%, #fb7185 0 5px, transparent 5.5px),
  radial-gradient(circle at 12% 78%, #38bdf8 0 4.5px, transparent 5px),
  radial-gradient(circle at 4% 54%, #f472b6 0 5px, transparent 5.5px),
  radial-gradient(circle at 8% 28%, #facc15 0 4.5px, transparent 5px),
  radial-gradient(circle at 24% 12%, #60a5fa 0 5px, transparent 5.5px);
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.10)); }
.brand-avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.98); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10); background: #fff; position: relative; z-index: 1; }
.eyebrow { color: #2563eb; font-size: 13px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.5px; }
.header { display: flex; justify-content: space-between; align-items: center; }
.header h1 { margin: 0; font-size: 30px; font-family: "Baloo 2", "PingFang SC", sans-serif; }
.title-tip { margin-top: 6px; color: #64748b; font-size: 13px; }
.nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav a { color: #2563eb; text-decoration: none; padding: 7px 12px; border-radius: 999px; transition: background .18s ease, color .18s ease, transform .18s ease; }
.nav a:hover { background: rgba(37, 99, 235, 0.08); transform: translateY(-1px); }
.nav a.btn { color: #ffffff; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: 9px 16px; min-height: 38px; background: linear-gradient(135deg, #4f8cff, #7c6cff); box-shadow: 0 10px 20px rgba(79, 140, 255, 0.22); }
.nav a.btn:hover { background: linear-gradient(135deg, #467ff0, #705ff2); }
.nav .nav-active { background: linear-gradient(135deg, rgba(79, 140, 255, 0.14), rgba(124, 108, 255, 0.12)); font-weight: 700; color: #1d4ed8; }
.cards { display: grid; gap: 16px; margin-bottom: 24px; }
.five-cards { grid-template-columns: repeat(5, 1fr); }
.four-cards { grid-template-columns: repeat(4, 1fr); }
.two-cards { grid-template-columns: repeat(2, 1fr); }
.card, .panel { background: rgba(255,255,255,0.96); border-radius: 18px; padding: 18px; box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07); border: 1px solid rgba(255,255,255,0.75); }
.hero { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 20px; }
.hero h2 { margin: 0 0 8px 0; }
.hero p { margin: 0; color: #6b7280; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card .label { font-size: 13px; color: #6b7280; }
.card .value { font-size: 28px; font-weight: 700; margin-top: 8px; }
.card .value.small { font-size: 24px; }
.playful-card { position: relative; overflow: hidden; }
.playful-card::after { content: ""; position: absolute; right: -18px; top: -18px; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.38); }
.card-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(255,255,255,0.72); color: #334155; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.card-tip { margin-top: 10px; color: #64748b; font-size: 12px; line-height: 1.5; position: relative; z-index: 1; }
.accent-blue { background: linear-gradient(180deg, #eff6ff, #ffffff); }
.accent-purple { background: linear-gradient(180deg, #f5f3ff, #ffffff); }
.accent-amber { background: linear-gradient(180deg, #fffbeb, #ffffff); }
.accent-green { background: linear-gradient(180deg, #ecfdf5, #ffffff); }
.accent-pink { background: linear-gradient(180deg, #fdf2f8, #ffffff); }
.star-card { background: linear-gradient(135deg, #fff7ed, #ffffff); }
.streak-card { background: linear-gradient(135deg, #ecfeff, #ffffff); }
.star-hero { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.8), 0 8px 18px rgba(15,23,42,0.08); margin: 10px 0 2px; font-size: 22px; }
.star-profile { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.star-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.95); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10); }
.star-profile-text { color: #475569; font-size: 13px; font-weight: 600; }
.panel { margin-bottom: 20px; }
.panel h2 { margin-top: 0; font-size: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.section-tip { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.badge-soft { padding: 8px 12px; border-radius: 999px; background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #3730a3; font-size: 13px; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
th { background: #f9fafb; }
.subtext { color: #6b7280; font-size: 13px; margin-top: 4px; }
.status { padding: 4px 10px; border-radius: 999px; font-size: 12px; display: inline-block; }
.status-未开始 { background: #e5e7eb; color: #374151; }
.status-进行中 { background: #dbeafe; color: #1d4ed8; }
.status-已完成 { background: #dcfce7; color: #15803d; }
.status-已奖励 { background: #f3e8ff; color: #7e22ce; }
.btn, button { background: #2563eb; color: white; border: none; border-radius: 10px; padding: 8px 14px; cursor: pointer; text-decoration: none; font-size: 14px; }
.link-button { background: none; border: none; padding: 0; margin: 0; color: #1f2937; font: inherit; text-align: left; cursor: pointer; }
.link-button:hover { color: #2563eb; }
.btn-secondary { background: #6b7280; }
.btn-danger { background: #dc2626; }
form.inline { display: inline; }
.filter-form { margin-top: 8px; }
.action-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-section { background: linear-gradient(180deg, rgba(248,251,255,0.9), rgba(255,255,255,0.95)); border: 1px solid #e5eefb; border-radius: 16px; padding: 16px; margin-bottom: 16px; }
.form-section-title { font-size: 15px; font-weight: 700; color: #334155; margin-bottom: 14px; }
.single-row, .one-col { grid-template-columns: 1fr; }
.two-cols { grid-template-columns: repeat(2, 1fr); }
.three-cols { grid-template-columns: repeat(3, 1fr); }
.full-span { grid-column: 1 / -1; }
.compact-grid { gap: 14px; }
.status-inline { max-width: 260px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 12px; }
label { margin-bottom: 6px; font-weight: 600; }
input, select, textarea { padding: 10px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 14px; background: #fff; }
.field-tip { color: #94a3b8; font-size: 12px; margin-top: 6px; }
textarea { min-height: 100px; }
.flash { background: #dcfce7; color: #166534; padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.week-board { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; }
.week-column { display: flex; flex-direction: column; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.96)); }
.week-column-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
.week-column-body { display: flex; flex-direction: column; gap: 8px; min-height: 100px; }
.week-column h3 { margin: 0; font-family: "Baloo 2", "PingFang SC", sans-serif; font-size: 16px; display: flex; align-items: center; gap: 6px; line-height: 1.1; }
.week-emoji { font-size: 16px; }
.week-day-count { min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #64748b; background: linear-gradient(135deg, #fff7ed, #eff6ff); border: 1px solid #e5e7eb; border-radius: 999px; padding: 0 6px; white-space: nowrap; }
.task-card { background: linear-gradient(180deg, #ffffff, #fcfdff); border: 1px solid #e8edf5; border-radius: 12px; padding: 10px; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04); }
.tidy-task-card { position: relative; }
.task-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.task-card-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 22px; padding: 0 8px; border-radius: 999px; background: linear-gradient(135deg, #fdf2f8, #eff6ff); color: #475569; font-size: 11px; font-weight: 700; }
.task-card-points { font-size: 11px; color: #64748b; }
.task-card-title { font-weight: 700; margin-bottom: 4px; font-size: 13px; line-height: 1.45; }
.task-card-meta, .task-card-desc, .empty-day { color: #6b7280; font-size: 12px; }
.task-card-desc { margin: 6px 0; line-height: 1.45; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.task-card-bottom { display: flex; justify-content: flex-start; align-items: center; margin-top: 4px; }
.task-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.task-card-actions .btn, .task-card-actions button { min-width: 76px; padding: 7px 12px; font-size: 12px; border-radius: 9px; line-height: 1.2; }
.task-card-actions form.inline { display: block; }
.task-card-actions .btn-soft-secondary { background: #f8fafc; border: 1px solid #e5e7eb; }
.task-card-actions .btn-soft-primary { border: 1px solid #dbeafe; }
.btn-soft-primary { background: linear-gradient(135deg, #eff6ff, #eef2ff); color: #2563eb; }
.btn-soft-secondary { background: linear-gradient(135deg, #f8fafc, #fdf4ff); color: #475569; }
.btn-soft-primary:hover, .btn-soft-secondary:hover { filter: brightness(0.98); }
.empty-day { padding: 12px 10px; border: 1px dashed #dbe3ef; border-radius: 12px; background: linear-gradient(180deg, #fbfcfe, #fffdf8); line-height: 1.5; }
.week-filter-form { min-width: 220px; }
.week-filter-inner { margin-top: 8px; }
.week-filter-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-filter-row { display: flex; gap: 8px; align-items: center; }
.week-filter-row.compact { min-width: 220px; }
.week-quick-form { display: inline; margin: 0; }
.task-thumb { width: 100%; max-height: 120px; object-fit: cover; border-radius: 12px; margin: 8px 0; border: 1px solid #dbeafe; }
.task-thumb.large { max-width: 280px; max-height: 220px; }
.task-image-link { display: block; }
.image-preview-block { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.paste-box { margin-top: 8px; padding: 14px; border: 1px dashed #93c5fd; border-radius: 12px; background: #f8fbff; color: #475569; font-size: 14px; }
.paste-box:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.checkbox-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.checkbox-danger { color: #b91c1c; font-weight: 600; }
.list-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid #dbeafe; display: block; }
.list-thumb.placeholder { display: flex; align-items: center; justify-content: center; background: #f8fafc; color: #94a3b8; font-size: 12px; }
.task-list-rows { display: flex; flex-direction: column; gap: 12px; }
.task-row-card { display: grid; grid-template-columns: 82px minmax(220px, 1.4fr) minmax(170px, 0.9fr) 110px minmax(260px, 1.2fr); gap: 14px; align-items: center; padding: 14px; border: 1px solid #e5e7eb; border-radius: 16px; background: linear-gradient(180deg, #fbfdff, #ffffff); }
.task-row-title { font-weight: 700; margin-bottom: 4px; }
.task-row-meta { color: #475569; font-size: 13px; margin-bottom: 4px; }
.task-row-dates, .task-row-side { font-size: 13px; color: #475569; display: flex; flex-direction: column; gap: 6px; }
.meta-label { display: inline-block; min-width: 34px; color: #94a3b8; margin-right: 6px; }
.task-points { font-weight: 700; color: #1d4ed8; }
.task-row-actions { justify-content: flex-start; }
.encourage-panel { background: linear-gradient(135deg, #eff6ff, #ffffff); border: 1px solid #dbeafe; }
.encourage-panel.success { background: linear-gradient(135deg, #ecfdf5, #ffffff); border: 1px solid #bbf7d0; }
.encourage-panel p { margin-bottom: 0; color: #475569; }
.empty-state { text-align: center; padding: 28px 12px 20px; color: #64748b; }
.empty-state-icon { font-size: 34px; margin-bottom: 8px; }
.empty-state-title { font-size: 17px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.empty-state-text { font-size: 14px; }
.image-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 999; }
.image-modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.62); }
.image-modal-content { position: relative; width: min(92vw, 920px); max-height: 88vh; background: white; border-radius: 18px; padding: 16px; z-index: 1; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25); }
.image-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.image-modal-img { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; background: #f8fafc; }
.detail-modal-content { width: min(92vw, 760px); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 14px; }
.detail-label { display: block; color: #94a3b8; font-size: 12px; margin-bottom: 4px; }
.detail-block { margin-bottom: 14px; color: #334155; line-height: 1.6; }
.detail-image-wrap { margin-top: 6px; }
.detail-image { max-height: 280px; object-fit: cover; }
.detail-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
@media (max-width: 1180px) { .week-board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .five-cards, .four-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) { .two-cards { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .week-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) { .task-row-card { grid-template-columns: 82px 1fr; } .task-row-dates, .task-row-side, .task-row-actions { grid-column: 2; } }
@media (max-width: 700px) { .five-cards, .form-grid, .two-cards, .two-cols, .three-cols, .single-row, .one-col, .week-board, .detail-grid { grid-template-columns: 1fr; } .hero, .header, .section-head, .week-filter-row, .form-actions, .week-filter-inline, .brand-block { flex-direction: column; align-items: flex-start; } .form-section { padding: 14px; } .task-row-card { grid-template-columns: 1fr; } .task-row-media, .task-row-dates, .task-row-side, .task-row-actions { grid-column: auto; } .week-column-body { min-height: 0; } .week-column { padding: 12px; } }
