:root {
  --text: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --link: #006fd6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover,
.entry-card:hover h2 {
  color: var(--link);
}

.home,
.simple-page,
.files-page,
.site-footer {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.home,
.simple-page {
  padding: 96px 0 80px;
}

.intro {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
}

.intro-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 64px;
}

.entry-card {
  display: block;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 160ms ease, transform 160ms ease;
}

.entry-card:hover {
  border-color: #cfcfcf;
  transform: translateY(-2px);
}

.entry-label {
  display: block;
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-card h2 {
  margin-bottom: 14px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.entry-card p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.files-page {
  padding: 72px 0 88px;
}

.files-header {
  margin-bottom: 34px;
}

.files-header h1 {
  margin-bottom: 10px;
  font-size: clamp(2.8rem, 6vw, 4.4rem);
}

.files-header p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 600;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin-bottom: 76px;
  border: 2px dashed #b9b9b9;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.dropzone p {
  margin: 0;
  padding: 0 18px;
  font-size: 1.05rem;
  font-weight: 700;
}

.file-list h2 {
  margin-bottom: 24px;
  font-size: 2rem;
}

.empty-file-state {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.empty-file-state p {
  margin: 0;
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 28px, 1040px);
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 22px 0;
  }

  .home,
  .simple-page,
  .files-page,
  .site-footer {
    width: min(100% - 28px, 1040px);
  }

  .home,
  .simple-page {
    padding: 64px 0;
  }

  .entry-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .entry-card {
    min-height: 190px;
  }

  .entry-label {
    margin-bottom: 34px;
  }

  .files-page {
    padding: 52px 0 72px;
  }

  .dropzone {
    min-height: 130px;
    margin-bottom: 56px;
  }
}

@media (min-width: 721px) and (max-width: 960px) {
  .entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
