:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color: #1a1a1a;
  background-color: #ffffff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Minimalism Typography & Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

header {
  margin-bottom: 4rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 1.5rem;
}

header h1 {
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.03em;
}

header p {
  color: #888888;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.site-nav a, .site-nav button {
  background: none;
  border: none;
  padding: 0;
  color: #888888;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover, .site-nav a.active, .site-nav button:hover, .site-nav button.active {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Post list */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-item {
  cursor: pointer;
  transition: opacity 0.15s ease;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f5f5f5;
}

.post-item:hover {
  opacity: 0.7;
}

.post-item a {
  display: flex;
  flex-direction: row-reverse;
  gap: 1.5rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  justify-content: space-between;
}

.post-thumbnail {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border: 1px solid #eeeeee;
  overflow: hidden;
  background-color: #fafafa;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-info {
  flex-grow: 1;
}

.post-title {
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.post-desc {
  color: #666666;
  font-size: 0.95rem;
  margin: 0;
  max-width: 700px;
}

/* 移动端响应式布局 */
@media (max-width: 600px) {
  .post-item a {
    flex-direction: column;
    gap: 1rem;
  }
  .post-thumbnail {
    width: 100%;
    height: 180px;
  }
}

/* Single Post View (Large whitespace, fine typography) */
.post-view {
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.back-btn {
  background: none;
  border: none;
  padding: 0;
  color: #888888;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.back-btn:hover {
  color: #1a1a1a;
}

.post-content {
  font-size: 1.05rem;
  color: #222222;
  margin-bottom: 3.5rem;
}

.post-content a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #cccccc;
  padding-bottom: 1px;
  transition: all 0.15s ease;
}

.post-content a:hover {
  border-bottom-color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.03);
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.post-content li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
}

.post-content li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.68em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Parameter Code Block */
pre {
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

/* Assets Gallery Grid */
.gallery-section-title {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999999;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 0.5rem;
}

.gallery-section {
  margin-bottom: 3.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-item {
  background-color: #fafafa;
  border: 1px solid #eeeeee;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s ease;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: #666666;
}

.gallery-item.video-item {
  aspect-ratio: 16 / 9;
}

.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-caption {
  font-size: 0.8rem;
  color: #888888;
  text-align: center;
}

/* Flat Links List */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border: 1px solid #eeeeee;
  transition: border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.link-card:hover {
  border-color: #1a1a1a;
}

.link-card-title {
  font-size: 1.05rem;
  font-weight: 400;
}

.link-card-url {
  font-size: 0.85rem;
  color: #888888;
}

/* Modal details */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 2rem;
}

.modal-content {
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  padding: 1.5rem;
  max-width: 900px;
  width: 90%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.01);
  animation: fadeIn 0.18s ease;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #999999;
  font-size: 0.85rem;
  float: right;
  margin-top: -1.25rem;
  margin-right: -1.25rem;
}

.modal-close:hover {
  color: #1a1a1a;
}

.modal-media {
  max-height: 70vh;
  width: 100%;
  margin-bottom: 0;
  border: 1px solid #eeeeee;
  overflow: hidden;
  background-color: #fafafa;
}

.modal-media img, .modal-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-title {
  font-weight: 400;
  font-size: 0.88rem;
  margin: 1.25rem 0 0 0;
  letter-spacing: -0.01em;
  text-align: center;
  color: #555555;
  line-height: 1.4;
}


