/* ==========================================================================
   邮件处理 AI Agent · 10组
   Simple course project profile
   ========================================================================== */

:root {
  color-scheme: light;

  --font-sans: "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
  --font-serif: "Noto Serif SC", "Noto Serif CJK SC", "Source Han Serif SC",
    "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas,
    "Liberation Mono", monospace;

  --bg: #f4f3ee;
  --paper: #fffdf8;
  --ink: #1c2821;
  --ink-soft: #46534b;
  --muted: #6b746d;
  --green: #1e5a3f;
  --green-dark: #174431;
  --green-soft: #edf3ed;
  --line: #e4e2da;
  --line-soft: #efede7;
  --shadow: 0 18px 50px rgba(28, 45, 35, 0.07);
  --container: 980px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -12%, #fbfaf6, transparent 46rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #dfeadf;
  color: var(--green-dark);
}

a {
  color: inherit;
}

img {
  display: block;
}

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

ul,
ol {
  padding-left: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  flex: 0 0 auto;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand__text strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.brand__text span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
}

.term {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Project card
   -------------------------------------------------------------------------- */

.page {
  padding: 38px 0 26px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 36px 40px 30px;
  border-bottom: 1px solid var(--line);
}

.project-head__main {
  min-width: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.tag-group {
  display: inline-flex;
  height: 23px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tag-direction {
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.project-head h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.3vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-wrap: balance;
}

.leader {
  flex: 0 0 auto;
  min-width: 185px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.leader__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.leader__name {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.leader__phone {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(30, 90, 63, 0.28);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.leader__phone:hover {
  border-color: var(--green);
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel {
  min-width: 0;
  padding: 28px 40px 34px;
}

.panel + .panel {
  border-left: 1px solid var(--line);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.panel__head span {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

/* Team -------------------------------------------------------------------- */

.member-list {
  margin: 0;
  list-style: none;
}

.member-row {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.member-row:last-child {
  border-bottom: 0;
}

.member-name {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.member-name em {
  padding: 2px 6px;
  border: 1px solid rgba(30, 90, 63, 0.13);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
}

.member-id {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* Functions --------------------------------------------------------------- */

.feature-list {
  margin: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  min-height: 47px;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list .num {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-bottom: 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.footer-label {
  margin: 0;
  color: var(--muted);
}

.filing-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 13px;
}

.filing-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.filing-links a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filing-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.dot {
  width: 1px;
  height: 10px;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
    font-size: 8.5px;
  }

  .brand__text strong {
    font-size: 13.5px;
  }

  .brand__text span {
    font-size: 10px;
  }

  .term {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .page {
    padding: 24px 0 20px;
  }

  .project-card {
    border-radius: 10px;
  }

  .project-head {
    display: block;
    padding: 28px 22px 24px;
  }

  .tags {
    margin-bottom: 14px;
  }

  .project-head h1 {
    font-size: clamp(1.8rem, 8vw, 2.25rem);
  }

  .leader {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    min-width: 0;
    margin-top: 20px;
    padding-top: 15px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .leader__label {
    width: 100%;
    margin-bottom: 1px;
  }

  .leader__name {
    margin: 0;
    font-size: 1.1rem;
  }

  .leader__phone {
    font-size: 12px;
  }

  .project-body {
    display: block;
  }

  .panel {
    padding: 22px 22px 26px;
  }

  .panel + .panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .member-row,
  .feature-list li {
    min-height: 44px;
  }

  .member-name,
  .feature-list li {
    font-size: 13.5px;
  }

  .member-id {
    font-size: 11px;
  }

  .site-footer {
    padding-bottom: 26px;
  }

  .footer-inner {
    display: block;
    font-size: 10.5px;
  }

  .footer-label {
    margin-bottom: 5px;
  }

  .filing-links {
    gap: 5px 11px;
  }

  .filing-links a {
    font-size: 10.5px;
  }

  .filing-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .brand__text strong {
    font-size: 13px;
  }

  .brand__text span {
    font-size: 9.5px;
  }

  .term {
    font-size: 8.5px;
  }

  .project-head {
    padding: 24px 18px 22px;
  }

  .tag-group {
    height: 22px;
    font-size: 10px;
  }

  .tag-direction {
    font-size: 11px;
  }

  .project-head h1 {
    font-size: 1.8rem;
  }

  .panel {
    padding: 20px 18px 24px;
  }

  .panel__head h2 {
    font-size: 13.5px;
  }

  .member-name,
  .feature-list li {
    font-size: 13px;
  }

  .member-id {
    font-size: 10.5px;
  }

  .filing-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 2px;
  }

  .dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  @page {
    size: A4;
    margin: 16mm;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 10pt;
  }

  .container {
    width: 100%;
  }

  .site-header {
    border-color: #bbb;
    background: #fff;
  }

  .header-inner {
    min-height: 0;
    padding-bottom: 10pt;
  }

  .brand__mark {
    background: #111;
    color: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .brand__text span,
  .term,
  .leader__label,
  .panel__head span,
  .member-id,
  .footer-inner {
    color: #555;
  }

  .page {
    padding: 14pt 0 8pt;
  }

  .project-card {
    border: 1px solid #bbb;
    border-top: 2pt solid #111;
    border-radius: 0;
    box-shadow: none;
  }

  .project-head {
    padding: 16pt 18pt 14pt;
  }

  .tag-group {
    background: #111;
    color: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .project-head h1 {
    color: #111;
    font-size: 24pt;
  }

  .leader__phone,
  .filing-links a {
    color: #111;
  }

  .project-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .panel {
    padding: 13pt 18pt 17pt;
  }

  .panel + .panel {
    border-top: 0;
    border-left: 1px solid #ccc;
  }

  .panel__head {
    border-color: #ccc;
  }

  .member-row,
  .feature-list li {
    min-height: 0;
    padding: 6pt 0;
    border-color: #ddd;
    font-size: 9pt;
  }

  .feature-list .num {
    color: #333;
  }

  .member-row {
    break-inside: avoid;
  }

  .site-footer {
    padding-bottom: 0;
  }

  .footer-inner {
    padding-top: 8pt;
    font-size: 7pt;
  }

  .filing-icon {
    width: 12pt;
    height: 12pt;
  }
}
