:root { --teal: #12c5bf; --ink: #242a2a; --muted: #8d9695; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #f8faf9; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { overflow: hidden; }
.page-shell { max-width: 430px; height: 100vh; margin: 0 auto; background: #fff; }
.discover-content { height: 100%; overflow-y: auto; padding: 24px 16px 112px; scrollbar-width: none; }
.discover-content::-webkit-scrollbar { display: none; }
.discover-header { padding: 4px 2px 18px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.18; letter-spacing: -.04em; }
.header-row p { max-width: 288px; margin-top: 8px; color: #697170; font-size: 14px; line-height: 1.55; }
.search-button { flex: 0 0 auto; width: 38px; height: 38px; margin-top: 2px; border: 0; border-radius: 50%; background: #ecfaf9; color: #138f8c; font-size: 29px; line-height: 34px; cursor: pointer; }
.topic-strip { display: flex; gap: 9px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 20px; scrollbar-width: none; }
.topic-strip::-webkit-scrollbar { display: none; }
.topic { flex: 0 0 auto; border: 1px solid #e7eded; border-radius: 18px; background: #fff; color: #596261; padding: 8px 15px; font: inherit; font-size: 14px; cursor: pointer; transition: .2s ease; }
.topic.is-active { border-color: var(--teal); background: var(--teal); color: #fff; box-shadow: 0 5px 12px rgba(18, 197, 191, .22); }
.featured-note { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; padding: 13px; border-radius: 16px; background: linear-gradient(108deg, #effcfb, #f9fdfc); }
.featured-label { flex: 0 0 auto; padding: 6px 7px; border-radius: 8px; background: #d6f4f1; color: #148f8b; font-size: 11px; font-weight: 700; writing-mode: vertical-rl; letter-spacing: .08em; }
.featured-note strong { display: block; font-size: 15px; }
.featured-note p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.featured-arrow { margin-left: auto; color: var(--teal); font-size: 28px; font-weight: 300; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 16px; }
.section-heading h2 { font-size: 21px; letter-spacing: -.03em; }
.section-heading span { color: #9aa2a1; font-size: 12px; }
.notes-grid { column-count: 2; column-gap: 12px; }
.note-card { display: inline-block; width: 100%; margin: 0 0 21px; vertical-align: top; break-inside: avoid; }
.note-card[hidden] { display: none; }
.note-cover { position: relative; display: block; height: 184px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #dcefee, #b7dcd9); text-decoration: none; }
.note-cover.tall { height: 238px; background: linear-gradient(145deg, #f4dfc7, #eebfa3); }
.note-cover.short { height: 153px; background: linear-gradient(145deg, #d7e3c8, #aabf9b); }
.note-cover img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.note-cover img.is-missing { display: none; }
.image-placeholder { position: absolute; inset: 0; display: grid; place-content: center; color: rgba(42, 85, 82, .72); font-size: 13px; line-height: 1.55; text-align: center; letter-spacing: .04em; }
.cover-tag { position: absolute; z-index: 2; top: 9px; right: 9px; padding: 4px 8px; border-radius: 7px; background: rgba(255, 255, 255, .83); color: #526363; font-size: 11px; }
.note-title { display: -webkit-box; overflow: hidden; margin-top: 9px; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.42; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.note-summary { display: -webkit-box; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.note-meta { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #697270; font-size: 11px; white-space: nowrap; }
.avatar { display: grid; width: 19px; height: 19px; place-content: center; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; }
.coral { background: #e68075; }.gold { background: #d8a957; }.blue { background: #76a7c8; }.green { background: #86af82; }.purple { background: #9d8bba; }.orange { background: #d38f61; }
.like-button { margin-left: auto; padding: 0; border: 0; background: transparent; color: #84908e; font: inherit; font-size: 12px; cursor: pointer; }.like-button.is-liked { color: #ef6e72; }.like-button b { font-weight: 500; }
.empty-state { display: none; padding: 30px 0; color: #9aa2a1; font-size: 14px; text-align: center; }.empty-state.is-visible { display: block; }
.tab-bar { position: fixed; z-index: 10; bottom: 0; left: 50%; display: flex; align-items: center; justify-content: space-around; width: 100%; max-width: 430px; height: 82px; padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); box-shadow: 0 -5px 20px rgba(0,0,0,.07); transform: translateX(-50%); }
.tab-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #707877; font-size: 11px; text-decoration: none; }.tab-bar a.is-current { color: #10aaa5; font-weight: 700; }.tab-icon { height: 27px; font-size: 23px; line-height: 24px; }.ai-icon { display: grid; width: 42px; height: 42px; margin-top: -16px; place-content: center; border-radius: 50%; background: #15c6c9; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 5px 13px rgba(21,198,201,.28); }
@media (max-width: 360px) { .discover-content { padding-right: 13px; padding-left: 13px; } h1 { font-size: 28px; }.notes-grid { column-gap: 10px; }.note-cover { height: 170px; }.note-cover.tall { height: 218px; }.note-cover.short { height: 145px; }.topic-strip { margin-right: -13px; margin-left: -13px; padding-right: 13px; padding-left: 13px; } }
