:root {
  --bg: #0c0e12;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #7c9cff;
  --accent-soft: rgba(124, 156, 255, 0.15);
  --radius: 14px;
  --font-sans:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 156, 255, 0.22), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(120, 200, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(180, 140, 255, 0.06), transparent);
  pointer-events: none;
}

.site-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  padding: 1.5rem 0 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.name-highlight {
  color: var(--accent);
}

.subtitle {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

.hero-meta {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-meta .meta-label {
  display: inline-block;
  min-width: 2.75rem;
  margin-right: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: var(--bg);
  background: var(--accent);
  border-color: transparent;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.section {
  margin-bottom: 2.5rem;
}

.calendar-section {
  padding-top: 1.5rem;
}

.calendar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.calendar-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.calendar-meta-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calendar-meta-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calendar-meta-value {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.calendar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.calendar-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.calendar-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.calendar-btn:active {
  transform: scale(0.98);
}

.calendar-btn-ghost {
  background: rgba(255, 255, 255, 0.02);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
}

.calendar-weekdays {
  margin-bottom: 0.55rem;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.legend-dot.is-off {
  background: rgba(255, 92, 92, 0.28);
  border-color: rgba(255, 92, 92, 0.45);
}

.legend-dot.is-work {
  background: rgba(255, 199, 92, 0.22);
  border-color: rgba(255, 199, 92, 0.45);
}

.legend-dot.is-today {
  background: rgba(124, 156, 255, 0.3);
  border-color: rgba(124, 156, 255, 0.55);
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.calendar-day {
  min-height: 3rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.9rem;
}

.calendar-day-num {
  font-weight: 600;
}

.calendar-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.calendar-day.is-off {
  background: rgba(255, 92, 92, 0.08);
  border-color: rgba(255, 92, 92, 0.25);
}

.calendar-day.is-off .calendar-badge {
  background: rgba(255, 92, 92, 0.18);
  border-color: rgba(255, 92, 92, 0.35);
}

.calendar-day.is-work {
  background: rgba(255, 199, 92, 0.06);
  border-color: rgba(255, 199, 92, 0.22);
}

.calendar-day.is-work .calendar-badge {
  background: rgba(255, 199, 92, 0.16);
  border-color: rgba(255, 199, 92, 0.35);
}

.calendar-day.is-empty {
  background: transparent;
  border-color: transparent;
}

.calendar-day.is-today {
  background: rgba(124, 156, 255, 0.18);
  border-color: rgba(124, 156, 255, 0.45);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(124, 156, 255, 0.15);
}

.calendar-day.is-selected {
  border-color: rgba(124, 156, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.18);
}

.calendar-day.is-empty {
  pointer-events: none;
}

@media (max-width: 640px) {
  .calendar-meta {
    grid-template-columns: 1fr;
  }
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 50ch;
}

.subsection-title {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.block {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.prose {
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(124, 156, 255, 0.12);
  border: 1px solid rgba(124, 156, 255, 0.22);
  border-radius: 999px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  padding-bottom: 1.25rem;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.timeline > li:not(:last-child) .timeline-marker::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.35rem;
  bottom: -0.25rem;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.timeline-body {
  font-size: 0.9375rem;
  color: var(--muted);
}

.timeline-body strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-body p {
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid .card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.25rem;
}

.card-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.card-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.article-list li:first-child {
  padding-top: 0;
}

.article-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.article-list a:hover {
  color: var(--accent);
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .tool-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.tool-card {
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.25rem 1.1rem;
}

@media (min-width: 720px) {
  .tool-card--full {
    grid-column: 1 / -1;
  }
}

.tool-title {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.tool-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.tool-row-stack {
  grid-template-columns: 1fr;
}

.tool-label {
  font-size: 0.8125rem;
  color: var(--muted);
}

.tool-input,
.tool-textarea {
  width: 100%;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 14, 18, 0.35);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
}

.tool-input:focus,
.tool-textarea:focus {
  border-color: rgba(124, 156, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 156, 255, 0.12);
}

.tool-textarea {
  resize: vertical;
  line-height: 1.5;
}

.tool-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-row-stack .tool-actions {
  grid-column: auto;
}

.tool-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--bg);
  background: var(--accent);
  transition: filter 0.2s, transform 0.15s, background 0.2s, border-color 0.2s,
    color 0.2s;
}

.tool-btn:active {
  transform: scale(0.98);
}

.tool-btn:hover {
  filter: brightness(1.06);
}

.tool-btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.tool-btn-ghost:hover {
  filter: none;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.tool-output {
  margin-top: 0.25rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 18, 0.35);
  font-size: 0.875rem;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.tool-output-wrap {
  margin-top: 0.25rem;
}

.tool-output-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.tool-output-label {
  font-size: 0.75rem;
  color: rgba(154, 160, 166, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-copy {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.tool-copy:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.tool-copy:active {
  transform: scale(0.98);
}

.json-tree {
  font-size: 0.875rem;
  line-height: 1.5;
}

.json-tree details {
  margin: 0.2rem 0;
}

.json-tree summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}

.json-tree-children {
  margin-left: 1rem;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
  padding-left: 0.75rem;
}

.json-tree-leaf {
  margin: 0.2rem 0;
  color: var(--muted);
  word-break: break-word;
}

.contact-list {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9375rem;
}

.contact-label {
  display: inline-block;
  min-width: 3.5rem;
  margin-right: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-placeholder {
  color: var(--muted);
}

.legal-box {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-title {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.legal-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}

.legal-list li {
  margin-bottom: 0.4rem;
}

.legal-list li:last-child {
  margin-bottom: 0;
}

.about-site {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: transparent;
}

.about-site .section-title {
  font-size: 1.0625rem;
}

.about-site p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer {
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 1200px) {
  .site-header,
  .main,
  .footer-inner {
    max-width: 1080px;
  }
}

.copyright,
.beian,
.gongan {
  margin: 0.35rem 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.beian a,
.gongan a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 160, 166, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.beian a:hover,
.gongan a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}
