/* 上网 · Pixel Hollow（色板与像素阶梯圆角同厨房页） */
:root {
  --bg: #EBE6DE;
  --surface: #F7F4EF;
  --surface-2: #E6E0D7;
  --surface-3: #E3DBCF;
  --highlight: #E8DDCC;
  --text: #3B3732;
  --text-muted: #6E675E;
  --text-faint: #8A8278;
  --primary: #5A534B;
  --primary-2: #736B61;
  --acorn: #8C7B67;
  --sage: #9AA889;
  --sky: #8FA0A6;
  --gold: #D9A441;
  --fail: #C8553D;
  --xhs: #C8553D;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-pixel: "VT323", ui-monospace, monospace;
  --font-pixel-label: "Silkscreen", ui-monospace, monospace;
  --dots: radial-gradient(rgba(80, 70, 58, 0.07) 1px, transparent 1.2px);

  --clip-px: polygon(0 10px,2px 10px,2px 6px,4px 6px,4px 4px,6px 4px,6px 2px,10px 2px,10px 0,calc(100% - 10px) 0,calc(100% - 10px) 2px,calc(100% - 6px) 2px,calc(100% - 6px) 4px,calc(100% - 4px) 4px,calc(100% - 4px) 6px,calc(100% - 2px) 6px,calc(100% - 2px) 10px,100% 10px,100% calc(100% - 10px),calc(100% - 2px) calc(100% - 10px),calc(100% - 2px) calc(100% - 6px),calc(100% - 4px) calc(100% - 6px),calc(100% - 4px) calc(100% - 4px),calc(100% - 6px) calc(100% - 4px),calc(100% - 6px) calc(100% - 2px),calc(100% - 10px) calc(100% - 2px),calc(100% - 10px) 100%,10px 100%,10px calc(100% - 2px),6px calc(100% - 2px),6px calc(100% - 4px),4px calc(100% - 4px),4px calc(100% - 6px),2px calc(100% - 6px),2px calc(100% - 10px),0 calc(100% - 10px));
  --clip-px-s: polygon(0 4px,2px 4px,2px 2px,4px 2px,4px 0,calc(100% - 4px) 0,calc(100% - 4px) 2px,calc(100% - 2px) 2px,calc(100% - 2px) 4px,100% 4px,100% calc(100% - 4px),calc(100% - 2px) calc(100% - 4px),calc(100% - 2px) calc(100% - 2px),calc(100% - 4px) calc(100% - 2px),calc(100% - 4px) 100%,4px 100%,4px calc(100% - 2px),2px calc(100% - 2px),2px calc(100% - 4px),0 calc(100% - 4px));
}

* { box-sizing: border-box; }
.px { clip-path: var(--clip-px); }
.px-s { clip-path: var(--clip-px-s); }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: var(--dots);
  background-size: 4px 4px;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.web {
  max-width: 640px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.w-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.w-back {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--primary);
  font: 28px/1 var(--font-pixel); text-decoration: none;
}
.w-title { text-align: center; }
.w-title h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.w-title p { margin: 2px 0 0; font: 11px/1 var(--font-pixel-label); color: var(--text-faint); }

.w-notice { margin: 0; padding: 12px 14px; background: var(--highlight); font-size: 14px; }
.w-notice a { color: var(--primary); }
.w-error { color: var(--fail); }

.w-tabs { display: flex; gap: 6px; }
.w-tab {
  flex: 1; padding: 9px 0; text-align: center;
  background: var(--surface-3); color: var(--primary);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.w-tab:hover, .w-tab:focus-visible { background: var(--highlight); outline: none; }

.w-section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 12px; }
.w-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 2px 0; }
.w-section-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.w-count { font: 18px/1 var(--font-pixel); color: var(--text-faint); }
.w-hint { font-size: 12px; color: var(--text-faint); }

.w-tools { display: flex; flex-direction: column; gap: 8px; }
.w-input {
  width: 100%; padding: 10px 12px; border: 0;
  background: var(--surface); color: var(--text);
  font: 15px/1.5 var(--font-body);
}
.w-input:focus { outline: none; background: var(--highlight); }
.w-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.w-filter {
  border: 0; padding: 5px 10px;
  background: var(--surface-2); color: var(--text-muted);
  font: 13px/1.2 var(--font-body); cursor: pointer;
  clip-path: var(--clip-px-s);
}
.w-filter[aria-pressed="true"] { background: var(--primary); color: var(--surface); }

.w-finds { display: flex; flex-direction: column; gap: 8px; }
.w-find { padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; clip-path: var(--clip-px); }
.w-find-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); flex-wrap: wrap; }
.w-find-title { font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text); text-decoration: none; word-break: break-word; }
.w-find-title:hover, .w-find-title:focus-visible { color: var(--primary-2); text-decoration: underline; outline: none; }
.w-find-host { font-size: 12px; color: var(--text-faint); word-break: break-all; }
.w-find-note { margin: 2px 0 0; padding: 8px 10px; background: var(--surface-2); font-size: 14px; line-height: 1.6; color: var(--text); clip-path: var(--clip-px-s); }
.w-find-note::before { content: "栎："; font-weight: 600; color: var(--primary); }
.w-find-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-faint); }
.w-delete { border: 0; background: transparent; color: var(--text-faint); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 4px 0; }

.w-tag { display: inline-block; padding: 2px 6px; font-size: 12px; line-height: 1.3; color: var(--surface); background: var(--sky); clip-path: var(--clip-px-s); white-space: nowrap; }
.w-tag[data-v="xhs"] { background: var(--xhs); }
.w-tag[data-v="browser"] { background: var(--acorn); }
.w-tag[data-v="other"] { background: var(--text-faint); }
.w-tag.is-soft { background: var(--surface-3); color: var(--text-muted); }

.w-curious { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.w-idea { padding: 12px 14px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; clip-path: var(--clip-px); }
.w-idea-top { display: flex; gap: 6px; flex-wrap: wrap; }
.w-idea-topic { font-size: 15px; font-weight: 600; line-height: 1.45; }
.w-idea-detail { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.w-idea-detail.is-open { -webkit-line-clamp: unset; display: block; }
.w-more { align-self: flex-start; border: 0; background: transparent; padding: 0; color: var(--text-faint); font-size: 12px; cursor: pointer; text-decoration: underline; }

.w-leads { display: flex; flex-direction: column; gap: 12px; }
.w-group-label { margin: 0 0 6px; padding: 0 2px; font: 13px/1 var(--font-body); font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.w-group-label i { width: 8px; height: 8px; background: var(--sage); display: inline-block; }
.w-group[data-g="trying"] .w-group-label i { background: var(--gold); }
.w-group[data-g="noticed"] .w-group-label i { background: var(--sky); }
.w-group[data-g="done"] .w-group-label i { background: var(--text-faint); }
.w-group-list { display: flex; flex-direction: column; gap: 6px; }
.w-lead { padding: 10px 12px; background: var(--surface); display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; clip-path: var(--clip-px-s); }
.w-lead-icon { width: 34px; height: 34px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font: 9px/1 var(--font-pixel-label); letter-spacing: -0.5px; color: var(--acorn); clip-path: var(--clip-px-s); }
.w-lead-title { font-size: 15px; font-weight: 600; line-height: 1.4; word-break: break-word; }
.w-lead-title a { color: inherit; }
.w-lead-meta { margin-top: 2px; font-size: 12px; color: var(--text-faint); }
.w-lead-why { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.w-lead-need { margin: 4px 0 0; font-size: 12px; color: var(--acorn); }
.w-group[data-g="done"] .w-lead { background: var(--surface-2); }

.w-empty { margin: 0; padding: 18px 14px; background: var(--surface-2); text-align: center; font-size: 13px; line-height: 1.6; color: var(--text-faint); }
