:root {
  --bg-grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #ff66b3 100%);
  --card-bg: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.06);
  --text: #f7f7fb;
  --muted: rgba(247, 247, 251, 0.75);
  --accent: rgba(255, 255, 255, 0.06);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--bg-grad);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.4px;
}

.site-brand .author {
  display: block;
  font-size: 12px;
  color: var(--muted)
}

.site-nav {
  display: flex;
  gap: 14px
}

.site-nav .nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  opacity: 0.95;
}

.site-nav .nav-link:hover {
  transform: translateY(-2px)
}

.site-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

main#app {
  padding: 28px;
  flex: 1 1 auto;
  max-width: 1100px;
  margin: 24px auto;
  width: calc(100% - 56px);
}

/* generic card */
.card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 30px rgba(12, 12, 20, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 18px;
}

/* homepage layout */
.hero {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.hero .intro {
  max-width: 66%;
}

.hero h2 {
  margin: 0 0 8px 0;
  font-size: 26px
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

/* blog list */
.post-list {
  display: grid;
  gap: 12px
}

.post-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.post-meta {
  font-size: 12px;
  color: var(--muted)
}

/* article page */
.article h3 {
  margin-top: 0
}

.article p {
  line-height: 1.7;
  color: var(--muted)
}

/* tools */
.tools-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool textarea,
.tool input {
  width: 100%;
  min-height: 110px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  background: transparent;
  color: var(--text);
  resize: vertical;
}

.tool .controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}

.btn:active {
  transform: translateY(1px)
}

.small {
  font-size: 13px;
  padding: 6px 10px
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px
}

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff2 0%, #fff1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff
}

/* footer */
.site-footer {
  padding: 14px 28px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02));
}

.site-footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center
}

/* responsive tweaks */
@media (max-width:800px) {
  .hero {
    flex-direction: column;
    align-items: flex-start
  }

  .about-grid {
    grid-template-columns: 1fr
  }
}

a::before {
  color: rgba(247, 247, 251, 0.75);
}