/* ==========================================================================
   文件收纳工具大全 — 首页样式
   基准：1440 宽（03-ui/home-ui-desktop.png），量稿分区高度见 03-ui/compare-log.md
   ========================================================================== */

:root {
  --paper: #f1e7d8;
  --paper-2: #f2eade;
  --paper-3: #ece0cd;
  --ink: #2e2118;
  --ink-2: #4a382b;
  --muted: #6f5a48;
  --accent: #764e34;
  --accent-hi: #9f7c59;
  --accent-dark: #5b3b27;
  --line: #d9c8af;
  --cream: #f7efe3;
  --maxw: 1440px;
  --gutter: 36px;
  --wrap: 1368px;
  --sans: 'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:'PingFang SC','Microsoft YaHei','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--cream);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid rgba(46, 33, 24, .08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 63px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}
.brand__mark { display: inline-flex; }
.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}
.brand { flex: 0 0 auto; }
.brand__name { white-space: nowrap; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 13.5px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: 0 0 auto; }
.site-nav a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-2);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}
/* -------------------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 47%;
  min-height: 384px;
  background: var(--paper);
}
.hero__text {
  padding: 40px 44px 26px var(--gutter);
  max-width: 830px;
  margin-left: auto;
  width: 100%;
}
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
}
.hero__title {
  margin-top: 8px;
  font-size: 70px;
  line-height: 1.05;
  letter-spacing: .01em;
  font-weight: 700;
  color: var(--ink);
}
.hero__sub {
  margin-top: 6px;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}
.hero__lede {
  margin-top: 12px;
  max-width: 640px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink-2);
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: var(--cream); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--primary::after { content: "→"; font-size: 15px; }
.btn--ghost { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn--ghost:hover { background: rgba(118, 78, 52, .08); }
.hero__stats {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px;
  height: 42px;
}
.hero__stats li {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}
.hero__stats li + li { border-left: 1px solid var(--line); }
.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
  height: 384px;
  min-height: 0;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 45%;
}

/* ---------------------------------------------------------------- sections */
.section { padding: 22px 0 24px; }

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  color: var(--ink);
}
.section__title::before {
  content: "";
  width: 4px; height: 22px;
  background: var(--accent);
  flex: none;
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.section__head--inline {
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section__sub {
  font-size: 14px;
  color: var(--muted);
}
.section__more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.section__more:hover { color: var(--accent-dark); }

/* categories */
.cats { padding-top: 22px; padding-bottom: 22px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.cat-card { min-width: 0; }
.cat-card > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 12px 10px 14px;
  background: var(--paper-2);
  border-radius: var(--radius);
  text-align: center;
  transition: background .2s ease, transform .2s ease;
}
.cat-card > a:hover { background: #f7f0e4; transform: translateY(-2px); }
.cat-card__thumb {
  display: block;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
}
.cat-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.cat-card__desc {
  margin-top: 2px;
  font-size: 11.8px;
  line-height: 1.4;
  color: var(--muted);
}

/* featured */
.featured { background: var(--paper); }
.feat-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 14px;
}
.feat-card {
  display: flex;
  gap: 10px;
  padding: 9px;
  background: var(--paper-2);
  border-radius: var(--radius);
  transition: box-shadow .2s ease;
}
.feat-card:hover { box-shadow: 0 2px 12px rgba(46, 33, 24, .1); }
.feat-card__media {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
}
.feat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feat-card__body { display: flex; flex-direction: column; min-width: 0; }
.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-hi);
  padding-bottom: 1px;
}
.feat-card__title {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
.feat-card__title a:hover { color: var(--accent); }
.feat-card__desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

/* category content modules */
.modsec + .modsec { border-top: 1px solid rgba(46, 33, 24, .07); }
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.mod-grid .feat-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.mod-grid .feat-card__media {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}
.mod-grid .feat-card__body { padding: 10px 12px 12px; }
.mod-grid .feat-card__title { font-size: 14.5px; }
.mod-grid .feat-card__desc { font-size: 12px; }

/* spec table */
.spec-grid {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.spec-table { min-width: 0; }
.spec-table table { font-size: 12.5px; line-height: 1.45; }
.spec-table th,
.spec-table td {
  padding: 5px 10px;
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  background: var(--accent);
  color: var(--cream);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .04em;
}
.spec-table thead th:first-child { border-radius: 2px 0 0 0; }
.spec-table thead th:last-child { border-radius: 0 2px 0 0; }
.spec-table tbody tr:nth-child(odd) { background: rgba(242, 234, 222, .85); }
.spec-table tbody tr:nth-child(even) { background: rgba(236, 224, 205, .55); }
.spec-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.spec-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  height: 100%;
  max-height: 190px;
  align-self: start;
}
.spec-photo img { width: 100%; height: 190px; object-fit: cover; }

/* workflow */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step { position: relative; padding-right: 12px; }
.step + .step { border-left: 1px solid var(--line); padding-left: 20px; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.step__name {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 700;
}
.step__desc {
  margin-top: 2px;
  font-size: 11.8px;
  line-height: 1.4;
  color: var(--muted);
}

/* duo: compare + desk plans */
.duo { padding-top: 26px; padding-bottom: 22px; }
.duo__grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 36px;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 10px;
}
.compare__row {
  padding: 7px 0 7px 12px;
  border-left: 3px solid var(--accent);
}
.compare__row dt {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.compare__row dd {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.plan-card__media {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--paper-3);
}
.plan-card__media img { width: 100%; height: 100%; object-fit: cover; }
.plan-card__name {
  padding: 8px 10px 0;
  font-size: 15px;
  font-weight: 700;
}
.plan-card__desc {
  padding: 2px 10px 10px;
  font-size: 11.8px;
  line-height: 1.5;
  color: var(--muted);
}

/* label system */
.labelsec { background: var(--paper-3); padding: 12px 0 12px; }
.labelsec__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
}
.labelsec__lede {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.labelsec__code {
  margin: 3px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  font-feature-settings: "tnum";
}
.rule-block { padding: 6px 0; border-top: 1px solid rgba(118, 78, 52, .25); }
.labelsec__side .rule-block:first-child { border-top: none; padding-top: 14px; }
.labelsec__side { display: flex; flex-direction: column; }
.rule-block__name { font-size: 15px; font-weight: 700; }
.rule-block__desc {
  margin-top: 2px;
  font-size: 11.8px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* collection note */
.note {
  background: var(--paper-3);
  border-top: 1px solid rgba(118, 78, 52, .18);
  padding: 12px 0 14px;
}
.note__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.note__title {
  grid-column: 1 / -1;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.note__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.note__text {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--accent);
  color: var(--cream);
  padding: 26px 0 0;
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 30px;
  align-items: flex-start;
}
.footer__col { flex: 1 1 180px; min-width: 160px; }
.footer__brand { flex: 1.3 1 260px; }
.footer__brand { display: flex; align-items: flex-start; gap: 10px; }
.footer__brand .brand__mark { color: var(--muted-alt); margin-top: 2px; }
.footer__slogan strong { display: block; font-size: 19px; font-weight: 700; }
.footer__slogan span { display: block; margin-top: 2px; font-size: 12.5px; color: #e3cdb6; }
.footer__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted-alt);
  margin-bottom: 8px;
}
.footer__nav ul,
.footer__topics ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
}
.footer__topics ul { gap: 4px 14px; }
.footer__about ul { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.footer__icp { margin-top: 8px; font-size: 12px; color: #e3cdb6; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 10px;
  padding-bottom: 14px;
  border-top: 1px solid rgba(247, 239, 227, .25);
  font-size: 12px;
  color: #e7d3bd;
}
.footer__copy { white-space: nowrap; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  :root { --gutter: 28px; }
  .hero__title { font-size: 60px; }
  .hero__sub { font-size: 26px; }
  .site-nav { gap: 20px; font-size: 13.5px; }
  .cat-card__desc { font-size: 12px; }
  .feat-card__title { font-size: 15px; }
}

@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 42%; }
  .hero__title { font-size: 52px; }
  .hero__sub { font-size: 23px; }
  .hero__lede { font-size: 15px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo__grid { grid-template-columns: 1fr; gap: 28px; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-photo { max-height: 260px; }
}

@media (max-width: 900px) {
  .header__inner { gap: 10px; }
  .brand__name { font-size: 17px; }
  .site-nav {
    gap: 14px;
    font-size: 13px;
    justify-content: flex-start;
  }
  .site-nav a { padding: 4px 0; }
  .hero { grid-template-columns: 1fr; }
  .hero__text { padding: 34px var(--gutter) 8px; max-width: none; }
  .hero__title { font-size: 46px; }
  .hero__sub { font-size: 21px; }
  .hero__media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .hero__actions { margin-top: 20px; }
  .hero__stats { height: auto; padding: 6px 4px; flex-wrap: wrap; }
  .hero__stats li { padding: 2px 10px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .step + .step { border-left: none; padding-left: 0; }
  .step { border-top: 1px solid var(--line); padding-top: 12px; }
  .labelsec__grid { grid-template-columns: 1fr; gap: 20px; }
  .labelsec__side .rule-block:first-child { padding-top: 0; border-top: 1px solid rgba(118, 78, 52, .25); }
  .footer__grid { flex-direction: column; gap: 20px; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero__title { font-size: 40px; }
  .hero__sub { font-size: 19px; line-height: 1.5; }
  .eyebrow { font-size: 14px; }
  .hero__lede { font-size: 14px; }
  .section { padding: 22px 0 24px; }
  .section__title { font-size: 21px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card__media { flex-basis: 34%; }
  .spec-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .spec-table table { min-width: 560px; font-size: 12px; }
  .steps { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card__media { aspect-ratio: 16 / 9; }
  .note__grid { grid-template-columns: 1fr; gap: 14px; }
  .note__title { font-size: 21px; }
  .labelsec__code { font-size: 27px; }
  .btn { height: 40px; padding: 0 18px; font-size: 14px; }
  .hero__stats { border-radius: 6px; }
  .hero__stats li { font-size: 12px; }
}

@media (max-width: 640px) {
  .spec-table::after {
    content: "左右滑动查看完整表格";
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
  }
}
