:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #dde3ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32rem),
    linear-gradient(180deg, #eef4ff 0%, var(--bg) 42%, #ffffff 100%);
}

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

.site-header,
.page-main,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.nav-note {
  color: var(--muted);
  font-size: 14px;
}

.hero {
  padding: 70px 0 58px;
}

.hero-label,
.section-label {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
}

.hero-subtitle {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.8;
}

.page-main {
  padding: 18px 0 54px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.section-desc {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.project-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(221, 227, 238, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.13);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.project-number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 800;
  background: #eaf1ff;
  border-radius: 8px;
}

.project-status {
  padding: 7px 12px;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  background: #dff8ed;
  border-radius: 999px;
}

.project-status.is-progress {
  color: #9a3412;
  background: #ffedd5;
}

.project-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.project-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 6px 10px;
  color: #344054;
  font-size: 13px;
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 700;
  background: var(--primary);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-link:hover,
.project-link:focus {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.empty-state {
  padding: 32px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.site-footer {
  padding: 0 0 32px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--primary);
}

.password-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  padding: 20px;
}

.password-dialog.is-hidden {
  display: none;
}

.password-card {
  position: relative;
  width: min(100%, 420px);
  border: 1px solid rgba(221, 227, 238, 0.95);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  padding: 28px;
}

.password-card h3 {
  margin: 0 0 20px;
  font-size: 26px;
}

.password-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.password-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  outline: none;
}

.password-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.password-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.password-submit {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.password-submit:hover,
.password-submit:focus {
  background: var(--primary-dark);
}

.password-message {
  min-height: 20px;
  margin: 10px 0 14px;
  color: #dc2626;
  font-size: 14px;
}

@media (max-width: 720px) {
  .site-header,
  .page-main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hero {
    padding: 44px 0 40px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card {
    min-height: auto;
    padding: 22px;
  }
}
