:root {
  color-scheme: light;
  --page: #f5f4ef;
  --surface: #fffdf7;
  --surface-strong: #242424;
  --line: #ded8ca;
  --muted: #756f63;
  --accent: #1f6f5b;
  --accent-strong: #124f41;
  --shadow: 0 18px 55px rgba(35, 31, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(31, 111, 91, 0.08), transparent 34%),
    var(--page);
  color: var(--surface-strong);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

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

.site-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
}

.site-header {
  min-height: 92px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0;
}

.site-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  min-height: 620px;
}

.sidebar,
.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 20px;
}

.account-link {
  min-height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 111, 91, 0.28);
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.account-link:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.account-link:focus-visible {
  outline: 3px solid rgba(31, 111, 91, 0.28);
  outline-offset: 3px;
}

.content-panel {
  min-height: 100%;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
    padding: 20px 0;
  }

  .site-layout {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .sidebar {
    min-height: 86px;
  }

  .content-panel {
    min-height: 420px;
  }
}
