/*
 * Desktop layout adapted from https://files.community/ (Files Community, MIT).
 * Source license: /res/files-community-LICENSE.txt
 */

@font-face {
  font-family: "Ubuntu";
  src: url("/res/Ubuntu-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --text-primary: #405060;
  --text-secondary: #536575;
  --text-tertiary: #637383;
  --accent: #405060;
  --background: #e6ebef;
  --section-background: #f0f3f5;
  --card-background: #fafbfc;
  --subtle: rgb(64 80 96 / 8%);
  --divider: rgb(64 80 96 / 16%);
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text-primary);
  font: 1.4rem/1.5 "Ubuntu", "Microsoft YaHei", sans-serif;
}
button,
input,
textarea,
select {
  font-family: "Ubuntu", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.navbar, .inner, .item { display: flex; align-items: center; }
.navbar { position: sticky; top: 0; z-index: 10; justify-content: space-between; height: 58px; padding: 12px 18px; background: rgb(240 243 245 / 88%); backdrop-filter: blur(20px) saturate(150%); border-bottom:0px solid #40506059;}
.logo { display: flex; align-items: center; text-decoration: none; }
.navbar .logo { margin-right: 8px; }
.logo img { display: block; width: auto; object-fit: contain; }
.navbar .logo img { height: 32px; margin-right: 12px; }
.divider { height: 30px; margin: 0 8px; border-left: 1px solid var(--subtle); }
.item { justify-content: center; margin: 0 4px; padding: 5px 11px 6px; border-radius: 4px; color: var(--text-secondary); font-size: 1.36rem; text-decoration: none; }
.item.selected, .item:hover, .github-link:hover { background: var(--subtle); }
.item.selected { color: var(--accent); }
.item[aria-disabled="true"] { cursor: default; }
.github-link { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px; border-radius: 4px; color: var(--text-secondary); text-decoration: none; }
.github-link svg { width: 18px; height: 18px; }
.page-section { position: relative; }
.page-section-inner { position: relative; width: 100%; max-width: 2048px; margin: 0 auto; padding: 72px; }
#features-section { background: var(--section-background); }
.header-chip { display: inline-flex; margin-bottom: 8px; padding: 4px 16px; border-radius: 50px; background: var(--subtle); color: var(--text-secondary); font-size: 14px; font-weight: 600; line-height: 18px; }
h1 { margin: 0; font-size: 4.8rem; font-weight: 600; line-height: 1.3; }
.section-description { margin: 12px 0 24px; color: var(--text-secondary); font-size: 1.6rem; line-height: 1.65; }
hr { margin: 0 0 24px; border: 0; border-top: 1px solid var(--divider); }
.feature-cards-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 4px; background: var(--card-background); box-shadow: 0 0 0 1px rgb(64 80 96 / 12%); outline: 2px solid transparent; transition: outline-color .25s, box-shadow .25s; }
.feature-card:hover, .feature-card:focus-within { outline-color: var(--accent); box-shadow: 0 2px 4px rgb(64 80 96 / 8%), 0 0 0 1px rgb(64 80 96 / 12%); }
.site-icon { width: 24px; height: 24px; color: var(--accent); }
.feature-card h2 { margin: 0; font-size: 1.8rem; font-weight: 600; }
.feature-card a { text-decoration: none; }
.feature-card a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.feature-card p { margin: 0; font-size: 1.4rem; color: var(--text-tertiary); }
#page-footer .page-section-inner { display: flex; justify-content: space-between; gap: 48px; }
#page-footer .column { display: block; flex: 0 0 auto; min-width: 14vw; }
#page-footer .column:first-child { flex: 1 1 auto; }
#page-footer .logo { margin-right: 8px; font-size: 3.6rem; font-weight: 600; }
#page-footer .logo img { height: 48px; margin-right: 12px; }
#page-footer p { max-width: 65ch; margin: 12px 0 24px; color: var(--text-secondary); font-size: 1.6rem; line-height: 1.65; }
.social-links { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 32px; height: 32px; border-radius: 4px; color: var(--text-primary); }
.icon-button svg { width: 16px; height: 16px; fill: currentColor; }
.icon-button:hover { background: var(--subtle); }
.style-hyperlink { display: table; margin: 4px 0; padding: 5px 0; color: var(--accent); line-height: 20px; text-decoration: none; }
.style-hyperlink:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Keep the desktop layout; let the navigation, cards and footer wrap on phones. */
@media (max-width: 1023px) {
  .page-section-inner { padding: 48px 32px; }
  .feature-cards-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #page-footer .page-section-inner { flex-wrap: wrap; gap: 32px; }
  #page-footer .column { min-width: 0; }
  #page-footer .column:first-child { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .navbar { position: relative; height: auto; padding: 14px 20px; }
  .navbar .inner { width: 100%; flex-wrap: wrap; gap: 4px; }
  .navbar .logo { flex-basis: 100%; margin: 0 0 8px; }
  .navbar .logo img { margin-right: 0; }
  .navbar .divider { display: none; }
  .navbar .item { margin: 0; padding: 8px 10px; }
  .navbar .buttons { position: absolute; top: 14px; right: 20px; }
  .page-section-inner { padding: 40px 24px; }
  h1 { font-size: 3.6rem; }
  .feature-cards-container { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature-card { padding: 24px; }
  #page-footer .column { flex: 1 1 120px; }
}
