* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #fff;
  background: #0f172a;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  padding-left: 20px;
}

.home-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  transition: background-image 0.6s ease;
  z-index: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1;
}

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.hero-content {
  max-width: 760px;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  margin-bottom: 18px;
  background: #fff;
}

.site-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.site-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 22px;
}

.quote-box {
  margin-bottom: 28px;
  padding: 0 12px;
}

.random-quote {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}

.nav-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  color: #fff;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.social-link {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  transition: 0.25s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.sub-page {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  min-height: 100vh;
  color: #fff;
}

.page-header {
  padding: 20px 24px 0;
}

.back-home {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
}

.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.center-card {
  text-align: center;
}

.about-card {
  text-align: center;
}

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  border: 3px solid rgba(255, 255, 255, 0.8);
}

h1 {
  margin-bottom: 12px;
  font-size: 32px;
}

h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.muted {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.content-block {
  text-align: left;
  margin-top: 24px;
  line-height: 1.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.project-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 12px;
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-link {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.links-page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.link-card {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.25s ease;
}

.link-card:hover {
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 768px) {
  .site-title {
    font-size: 32px;
  }

  .site-subtitle {
    font-size: 17px;
  }

  .random-quote {
    font-size: 15px;
  }

  .logo {
    width: 84px;
    height: 84px;
  }

  .card {
    padding: 22px;
  }
}
/* 项目列表页优化 */
.narrow-container {
  max-width: 860px;
}

.article-header {
  padding-bottom: 8px;
}

.article-list-wrapper {
  padding: 30px 24px;
}

.page-intro {
  margin-bottom: 26px;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 像公众号摘要一样的项目条目 */
.article-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
}

.article-item:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.article-cover {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.article-content {
  flex: 1;
  min-width: 0;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.article-category,
.article-date,
.article-readtime {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.article-title {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.4;
}

.article-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-summary {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 12px;
}

.article-more {
  color: #cbd5e1;
  font-size: 14px;
}

/* 详情页 */
.detail-card {
  padding: 30px;
}

.detail-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.detail-cover {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  flex-shrink: 0;
}

.detail-head {
  flex: 1;
}

.detail-title {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.35;
}

.detail-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.detail-summary-box {
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  line-height: 1.8;
}

.detail-summary-box strong {
  display: block;
  margin-bottom: 8px;
}

.detail-content {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.9);
}

.detail-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 22px;
}

.detail-content p {
  margin-bottom: 14px;
}

.detail-content ul {
  margin-bottom: 16px;
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-footer {
  margin-top: 32px;
}

.detail-back-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.detail-empty {
  text-align: center;
  padding: 30px 10px;
}

@media (max-width: 768px) {
  .article-item {
    padding: 16px;
    gap: 14px;
  }

  .article-cover {
    width: 58px;
    height: 58px;
    font-size: 24px;
    border-radius: 14px;
  }

  .article-title {
    font-size: 20px;
  }

  .detail-top {
    flex-direction: column;
  }

  .detail-cover {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }

  .detail-title {
    font-size: 26px;
  }

  .detail-card {
    padding: 22px;
  }
}
.resume-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}