/* P0 home and product-list content, adapted from
   /root/open123/design-v2/07-open123.html. Only the intro, section, tool,
   post and life blocks live here; the shell, header, reader, footer and page
   measure stay in site.css. */
/* Turbo owns history restoration: avoid overlapping smooth-scroll animations. */
html { scroll-behavior: auto; }
.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;
}

/* Homepage introduction. */
.intro { padding-block: clamp(44px, 7vw, 74px) clamp(52px, 7vw, 82px); }
.intro-copy {
  max-inline-size: 36rem;
  font-size: clamp(20px, 2.1vw, 27px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.016em;
  text-wrap: balance;
  color: var(--ink);
}
.intro-phrase { white-space: nowrap; }
.intro + .section { margin-top: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) and (forced-colors: none) {
  .home .title-link .icon { transition: transform 160ms ease-out; }
  .home .title-link:hover .icon { transform: translate(2px, -2px); }
}

/* Section heading */
.section { margin-top: 112px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 34px;
}
.section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .025em;
  color: var(--ink);
}
.section-side { display: flex; align-items: baseline; gap: 16px; }
.section-meta {
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--muted);
}
.text-link:hover { color: var(--blue); text-decoration: none; }
.text-link .icon { width: 12px; height: 12px; transition: transform .18s ease; }
.text-link:hover .icon { transform: translate(2px, -2px); }

/* Products on the home page */
.home .tool-list { margin-top: 0; }
.tool + .tool { margin-top: 34px; }
.tool-row { display: flex; align-items: flex-start; gap: 18px; }
.tool-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 11px;
  background: var(--panel);
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}
.tool-icon .icon { width: 19px; height: 19px; }
.product-logo { display: block; width: 100%; height: 100%; border-radius: inherit; }
.tool-icon--blue { color: var(--blue); }
.tool-icon--orange { color: var(--orange); }
.tool:hover .tool-icon { background: var(--line); color: var(--ink); }
.tool:hover .tool-icon--blue { color: var(--blue); }
.tool:hover .tool-icon--orange { color: var(--orange); }
.tool-main { flex: 1; min-width: 0; }
.tool h3 { font-size: 21px; line-height: 1.4; }
.product-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.product-status {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}
.product-status[data-status="已上线"] {
  color: #185c3b;
  border-color: #b9dfc8;
  background: #e9f7ee;
}
.product-status[data-status="开发中"] {
  color: #854700;
  border-color: #efd6a6;
  background: #fff3de;
}
html[data-theme="dark"] .product-status[data-status="已上线"] {
  color: #a5e8bb;
  border-color: #385d47;
  background: #1d3327;
}
html[data-theme="dark"] .product-status[data-status="开发中"] {
  color: #ffcb83;
  border-color: #684d2a;
  background: #382819;
}
p.tool-copy {
  max-width: 620px;
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}
.title-link .icon { width: 13px; height: 13px; margin-inline-start: 4px; }
.title-link:hover, .title-link:focus-visible, .post-link:hover, .post-link:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Product list page reuses site.css .tool-link and shows the icon square. */
.tool-link .tool-icon { margin-top: 0; }
.tool-link:hover .tool-icon { background: var(--line); color: var(--ink); }
.tool-link:hover .tool-icon--blue { color: var(--blue); }
.tool-link:hover .tool-icon--orange { color: var(--orange); }
.tool-link .tool-main strong {
  display: block;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
}
.tool-link .tool-main > span:not(.product-heading) {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.tool-link .tool-cta .icon { width: 12px; height: 12px; }
.tool-link:hover .tool-main strong { text-decoration: underline; text-underline-offset: 5px; }

/* Articles */
.post-list { list-style: none; margin: 0; padding: 0; }
.post + .post { margin-top: 48px; }
.post-featured + .post { margin-top: 58px; }
.post-date { display: inline-flex; align-items: center; gap: 7px; }
.post-date .icon { width: 13px; height: 13px; color: var(--blue); }
.post time {
  display: inline;
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .08em;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.post h3 { margin-top: 11px; font-size: 21px; line-height: 1.4; }
.post p {
  max-width: 620px;
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}
.post-featured h3 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1.34;
  letter-spacing: -.012em;
}
.post-featured p { max-width: 600px; font-size: 16px; }

@media (max-width: 900px) {
  .section { margin-top: 96px; }
}
@media (max-width: 700px) {
  .section { margin-top: 72px; }
  .section-head { margin-bottom: 24px; }
  .section h2 { font-size: 16px; letter-spacing: .02em; gap: 8px; }
  .section-meta { font-size: 11px; }
  .text-link { font-size: 11.5px; }
  .tool + .tool { margin-top: 28px; }
  .tool-row { gap: 14px; }
  .tool-icon { width: 40px; height: 40px; border-radius: 10px; margin-top: 1px; }
  .tool-icon .icon { width: 19px; height: 19px; }
  .tool h3 { font-size: 19px; }
  p.tool-copy { font-size: 14.5px; line-height: 1.8; margin-top: 7px; }
  .tool-link .tool-icon { width: 38px; height: 38px; margin-top: 0; }
  .tool-link .tool-main strong { font-size: 18px; }
  .tool-link .tool-main > span:not(.product-heading) { font-size: 14.5px; }
  .post + .post { margin-top: 36px; }
  .post-featured + .post { margin-top: 42px; }
  .post h3 { font-size: 19px; margin-top: 8px; }
  .post p { font-size: 14.5px; line-height: 1.8; margin-top: 7px; }
  .post-featured h3 { font-size: 24px; line-height: 1.34; margin-top: 9px; }
  .post-featured p { font-size: 15px; }
}
@media (max-width: 360px) {
  .tool h3 { font-size: 18px; }
  .post-featured h3 { font-size: 22px; }
}
