/* ===== 13号仓库 · gk13.help ===== */
:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --ink: #16181d;
  --ink-2: #3a3e46;
  --muted: #5f646e;
  --muted-2: #8a8f99;
  --muted-3: #a8acb3;
  --line: #e5e5e0;
  --line-soft: #f0f0ec;
  --accent: #e2542c;
  --accent-soft: #fdebe4;
  --green: #2f6f5e;
  --green-soft: #e7f0ec;
  --sand: #efefe8;
  --radius: 10px;
  --wrap: 1200px;
  --shadow: 0 1px 3px rgba(22, 24, 29, .04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.5px;
  font-family: "Inter Tight", -apple-system, sans-serif;
}
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -.2px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14px; font-weight: 500; color: #4a4e57; transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid #cfcfc8;
  font-size: 14px; font-weight: 500; color: var(--ink); transition: .15s;
}
.btn-ghost:hover { background: var(--sand); border-color: #bfbfb6; }
.nav__login { font-size: 14px; font-weight: 500; color: #4a4e57; }
.nav__toggle { display: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); }

/* ===== hero ===== */
.hero { padding: 64px 0 40px; text-align: center; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  color: var(--accent); text-transform: uppercase; margin: 0 0 18px;
  font-family: "Inter Tight", -apple-system, sans-serif;
}
.hero h1 {
  margin: 0 0 14px; font-size: 52px; line-height: 1.18;
  font-weight: 700; letter-spacing: -1.2px;
}
.hero__sub {
  margin: 0 auto 30px; max-width: 660px;
  font-size: 17px; color: var(--muted); line-height: 1.7;
}

.search {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 680px; margin: 0 auto;
  padding: 8px 8px 8px 18px; background: #fff;
  border: 1px solid #dcdcd4; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(22, 24, 29, .05);
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: #b9b9ae; box-shadow: 0 4px 16px rgba(22, 24, 29, .08); }
.search svg { flex: 0 0 20px; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none;
  font-size: 15px; color: var(--ink);
}
.search input::placeholder { color: var(--muted-3); }
.search button {
  flex: 0 0 auto; padding: 12px 26px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .15s;
}
.search button:hover { background: #cc4823; }

.hot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.hot__label { font-size: 13px; color: var(--muted-2); font-weight: 500; }
.chip {
  padding: 6px 14px; border-radius: 6px; background: #fff;
  border: 1px solid var(--line); font-size: 13px; color: #4a4e57;
  transition: .15s;
}
.chip:hover { border-color: #cfcfc6; background: #fbfbf8; }

.stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: 26px; }
.stats span { font-size: 13px; font-weight: 500; color: var(--muted); }
.stats i { width: 1px; height: 12px; background: #d6d6ce; }

/* ===== section ===== */
.section { padding: 26px 0 56px; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 24px;
}
.kicker {
  margin: 0 0 8px; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; color: var(--accent);
}
.section__head h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.6px; }
.more { font-size: 14px; font-weight: 500; color: #4a4e57; white-space: nowrap; }
.more:hover { color: var(--accent); }

/* ===== categories ===== */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.cat:hover { transform: translateY(-2px); border-color: #d8d8d0; box-shadow: 0 6px 18px rgba(22, 24, 29, .07); }
.cat__top { display: flex; align-items: center; justify-content: space-between; }
.cat__icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
}
.cat__icon--orange { background: var(--accent-soft); }
.cat__icon--green { background: var(--green-soft); }
.cat__icon--sand { background: var(--sand); }
.cat__count { font-size: 12px; font-weight: 500; color: var(--muted-2); font-family: "Inter Tight", sans-serif; }
.cat h3 { margin: 0; font-size: 17px; font-weight: 600; }
.cat p { margin: 0; font-size: 13px; color: #6b7078; }

.cat--dark { background: var(--ink); border-color: var(--ink); }
.cat--dark h3 { color: #fff; }
.cat--dark p { color: #b9bcc2; }
.cat--dark .cat__count { color: #b9bcc2; }
.cat--dark .cat__icon { background: var(--accent); }

/* ===== feed ===== */
.feed { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.feed__main { min-width: 0; }
.tabs {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 8px; background: #ededE7;
}
.tabs button {
  padding: 7px 16px; border-radius: 6px; font-size: 13px; color: var(--muted);
  transition: .15s;
}
.tabs button[aria-selected="true"] {
  background: #fff; color: var(--ink); font-weight: 600;
  box-shadow: 0 1px 2px rgba(22, 24, 29, .08);
}

.list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.item { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.item:last-child { border-bottom: 0; }
.item__icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.item__icon--orange { background: var(--accent-soft); }
.item__icon--green { background: var(--green-soft); }
.item__icon--sand { background: var(--sand); }
.item__body { flex: 1; min-width: 0; }
.item__title { font-size: 15px; font-weight: 600; margin: 0 0 5px; }
.item__title:hover { color: var(--accent); }
.item__meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted-2); }
.item__meta .dot { color: #cfcfc6; }
.item__cta { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--accent); }
.item__cta:hover { text-decoration: underline; }

.list__more {
  display: block; padding: 18px 0; text-align: center;
  font-size: 13px; font-weight: 500; color: #4a4e57;
  border-top: 1px solid var(--line-soft);
}
.list__more:hover { color: var(--accent); }

/* ===== sidebar ===== */
.side { display: flex; flex-direction: column; gap: 14px; }
.card {
  padding: 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card__dot { width: 6px; height: 6px; border-radius: 3px; background: var(--accent); }
.card__kicker { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--accent); }
.card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.card p { margin: 0; font-size: 12px; line-height: 1.7; color: #6b7078; }
.card__date { display: block; margin-top: 10px; font-size: 11px; color: var(--muted-3); }

.rank { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.rank__no { flex: 0 0 20px; font-size: 12px; font-weight: 600; color: var(--accent); font-family: "Inter Tight", sans-serif; }
.rank__no--mute { color: var(--muted-3); }
.rank__title { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank__count { font-size: 11px; color: var(--muted-3); font-family: "Inter Tight", sans-serif; }

.card--dark { background: var(--ink); border-color: var(--ink); }
.card--dark h3 { color: #fff; }
.card--dark p { color: #b9bcc2; }
.pill-btn {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 7px;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  margin-top: 12px; transition: background .15s;
}
.pill-btn:hover { background: #cc4823; }

/* ===== collections ===== */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.col-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.col-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22, 24, 29, .08); }
.col-card__cover {
  height: 168px; padding: 20px; display: flex; flex-direction: column;
  justify-content: space-between; background: var(--accent);
}
.col-card__cover--dark { background: var(--ink); }
.col-card__cover--green { background: var(--green); }
.col-card__tag { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; color: rgba(255, 255, 255, .75); font-family: "Inter Tight", sans-serif; }
.col-card__cover strong { color: #fff; font-size: 26px; line-height: 1.3; font-weight: 700; letter-spacing: -.5px; }
.col-card__body { padding: 18px; }
.col-card__body h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.col-card__body .meta { font-size: 12px; color: var(--muted-2); }
.col-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.col-card__foot .updated { font-size: 12px; font-weight: 500; color: var(--green); }
.col-card__foot .go { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ===== steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step__no { font-size: 20px; font-weight: 700; color: var(--accent); font-family: "Inter Tight", sans-serif; margin-bottom: 10px; }
.step h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.step p { margin: 0; font-size: 13px; line-height: 1.65; color: #6b7078; }

/* ===== disclaimer / footer ===== */
.notice {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; background: var(--sand); border-radius: var(--radius);
  font-size: 12px; line-height: 1.7; color: var(--muted);
}
.notice a { font-weight: 500; color: #4a4e57; white-space: nowrap; }

.site-footer { border-top: 1px solid #e2e2d9; margin-top: 8px; padding: 40px 0 26px; }
.footer__top { display: flex; justify-content: space-between; gap: 60px; }
.footer__brand { max-width: 320px; }
.footer__brand .brand { margin-bottom: 12px; }
.footer__brand p { margin: 0 0 12px; font-size: 12px; line-height: 1.7; color: #6b7078; }
.domain-pill {
  display: inline-block; padding: 4px 10px; border-radius: 5px; background: var(--sand);
  font-size: 11px; font-weight: 600; letter-spacing: .8px; color: #4a4e57;
  font-family: "Inter Tight", sans-serif;
}
.footer__links { display: flex; gap: 64px; }
.footer__col h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.footer__col a { display: block; margin-bottom: 9px; font-size: 12px; color: #6b7078; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; padding-top: 18px; border-top: 1px solid #ececE4;
  font-size: 12px; color: var(--muted-3); font-family: "Inter Tight", -apple-system, sans-serif;
}

/* ===== article ===== */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 20px 0 0; font-size: 12px; color: var(--muted-2); }
.breadcrumb .sep { color: #c4c7cc; }
.breadcrumb .current { color: var(--ink-2); font-weight: 500; }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; padding: 16px 0 48px; align-items: start; }
.article {
  padding: 40px 44px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; min-width: 0;
}
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag { padding: 4px 10px; border-radius: 5px; font-size: 11px; font-weight: 600; }
.tag--type { background: var(--accent-soft); color: var(--accent); }
.tag--disk { background: var(--green-soft); color: var(--green); }

.article h1 { margin: 0 0 16px; font-size: 34px; line-height: 1.35; font-weight: 700; letter-spacing: -.6px; }
.article__meta { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.avatar {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; font-family: "Inter Tight", sans-serif;
}
.article__meta span { font-size: 12px; color: var(--muted-2); }

.article h2 { margin: 30px 0 12px; font-size: 19px; font-weight: 600; }
.article p { margin: 0 0 16px; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.article ul { margin: 0 0 16px; padding-left: 0; list-style: none; }
.article ul li { position: relative; padding-left: 16px; margin-bottom: 8px; font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.article ul li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

.disk {
  margin: 26px 0 22px; padding: 22px; background: #f8f7f2;
  border: 1px solid #e2e2d8; border-radius: 10px;
}
.disk__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.disk__head h2 { margin: 0; font-size: 16px; }
.disk__state { padding: 4px 10px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 600; }
.disk__row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: #fff; border: 1px solid #e2e2d8; border-radius: 8px;
}
.disk__icon {
  flex: 0 0 36px; width: 36px; height: 36px; border-radius: 8px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.disk__info { flex: 1; min-width: 0; }
.disk__info strong { display: block; font-size: 14px; font-weight: 600; }
.disk__info small { font-size: 12px; color: var(--muted-2); }
.disk__link { font-size: 13px; color: var(--ink-2); font-family: "Inter Tight", monospace; word-break: break-all; }
.btn-copy {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: 12px; font-weight: 600;
  transition: background .15s;
}
.btn-copy:hover { background: #2b2f36; }
.disk__code { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e8e8de; }
.disk__code span { font-size: 12px; color: var(--muted-2); }
.disk__code strong { font-size: 15px; font-weight: 700; letter-spacing: 1px; font-family: "Inter Tight", monospace; }
.disk__code button { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--accent); }
.disk__note { margin: 12px 0 0; font-size: 11px; color: var(--muted-2); }
.article__legal { margin: 22px 0 0; font-size: 12px; line-height: 1.7; color: var(--muted-3); }

.article-side { display: flex; flex-direction: column; gap: 14px; }
.author { display: flex; align-items: center; gap: 10px; }
.author__avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; font-family: "Inter Tight", sans-serif;
}
.author__info { min-width: 0; }
.author__info strong { display: block; font-size: 14px; font-weight: 600; }
.author__info small { font-size: 11px; color: var(--muted-2); }
.follow {
  display: block; margin-top: 12px; padding: 9px 0; border-radius: 7px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; text-align: center;
}
.toc a { display: block; padding: 5px 0; font-size: 12px; color: var(--muted); }
.toc a:hover, .toc a.active { color: var(--accent); font-weight: 600; }
.related a { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px; color: var(--ink-2); }
.related a:hover { color: var(--accent); }
.related .mini { flex: 0 0 18px; height: 18px; border-radius: 4px; background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--muted); }

/* ===== responsive ===== */
@media (max-width: 1080px) {
  .wrap { padding: 0 28px; }
  .feed, .article-layout { grid-template-columns: 1fr; }
  .side, .article-side { flex-direction: row; flex-wrap: wrap; }
  .side > *, .article-side > * { flex: 1 1 260px; }
  .hero h1 { font-size: 42px; }
}
@media (max-width: 860px) {
  .cats, .cols, .steps { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; align-items: center; justify-content: center; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__links { gap: 40px; }
  .article { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 32px; letter-spacing: -.6px; }
  .hero__sub { font-size: 15px; }
  .search { flex-wrap: wrap; padding: 10px; border-radius: 12px; }
  .search input { flex: 1 1 calc(100% - 40px); }
  .search button { width: 100%; }
  .cats, .cols, .steps { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section__head h2 { font-size: 24px; }
  .list { padding: 4px 16px; }
  .item__cta { display: none; }
  .article h1 { font-size: 26px; }
  .footer__links { flex-wrap: wrap; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .notice { flex-direction: column; align-items: flex-start; gap: 10px; }
}
