:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --accent-color: #333333;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(0, 0, 0, 0.05);
  --blur-amt: 20px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 800px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #cccccc;
    --glass-bg: rgba(0, 0, 0, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-stack);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* DataURL SVG Icons (内嵌以提升性能) */
/* 这里的SVG是一个极简的圆形/鱼形抽象 */
.icon-fish {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z' fill='%23888888'/%3E%3Cpath d='M12 6C8.69 6 6 8.69 6 12C6 15.31 8.69 18 12 18V6Z' fill='currentColor'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

/* 布局容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 毛玻璃导航栏 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  backdrop-filter: blur(var(--blur-amt));
  -webkit-backdrop-filter: blur(var(--blur-amt));
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-link { margin-left: 20px; font-weight: 500; font-size: 0.9rem; }

/* 首页开屏动画 (Hero Section) */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: fadeInHero 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--accent-color);
  opacity: 0.7;
  font-weight: 300;
}

@keyframes fadeInHero {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 鱼游动动画特效 */
.fish-anim {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: swim 10s infinite ease-in-out;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
    .fish-anim { background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 70%); }
}

@keyframes swim {
  0% { transform: translate(-50px, -20px) scale(1); }
  50% { transform: translate(50px, 20px) scale(1.1); }
  100% { transform: translate(-50px, -20px) scale(1); }
}

/* 文章列表 */
.post-list { padding-top: 120px; min-height: 100vh; }
.post-item {
  margin-bottom: 60px;
  padding: 30px;
  border-radius: 16px;
  background: var(--glass-bg);
  /* 极简卡片效果 */
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.post-title { font-size: 1.8rem; margin-bottom: 10px; font-weight: 700; }
.post-meta { font-size: 0.85rem; color: #888; margin-bottom: 15px; }
.post-excerpt { font-size: 1rem; opacity: 0.9; }

/* 文章详情页 */
.post-content {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.post-content h1 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.2; }
.post-content p { margin-bottom: 1.5rem; }
.post-content img { max-width: 100%; border-radius: 8px; display: block; margin: 20px auto; }
.post-content blockquote {
    border-left: 4px solid var(--text-color);
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
}

.intro-section {
  padding: 100px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  opacity: 0; /* 配合JS动画 */
  transform: translateY(20px);
}

.intro-avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--glass-bg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.intro-content h2 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; }
.intro-content p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 20px; }

.btn {
  display: inline-block;
  padding: 10px 25px;
  border: 1px solid var(--text-color);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn:hover { background: var(--text-color); color: var(--bg-color); }

@media (max-width: 600px) {
  .intro-section { flex-direction: column; text-align: center; }
}

/* 友链页面样式 */
.links-container { max-width: var(--max-width); margin: 0 auto; padding-top: 120px; }
.link-submit-info {
  margin-bottom: 40px;
  padding: 20px;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  text-align: center;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.link-card {
  display: block;
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); opacity: 1; }
.link-avatar { width: 50px; height: 50px; border-radius: 50%; margin-bottom: 10px; }
.link-name { font-weight: bold; font-size: 1.1rem; display: block; margin-bottom: 5px; }
.link-desc { font-size: 0.85rem; opacity: 0.7; }

/* 页脚增强 */
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer-social a { margin: 0 10px; font-size: 1.2rem; }

/* 底部 */
footer {
  text-align: center;
  padding: 40px 0;
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
}

/* 代码块样式 */
.highlight, pre {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  margin: 20px 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

pre {
  padding: 0;
}

.highlight pre, .highlight code {
  border: none;
  background: transparent;
  margin: 0;
  padding: 16px;
  font-size: 0.9rem;
  font-family: 'Courier New', Consolas, Monaco, 'Ubuntu Mono', monospace;
  line-height: 1.5;
  overflow-x: auto;
}

/* 代码块复制按钮 */
.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 1;
}

.code-copy-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  opacity: 0.9;
}

.code-copy-btn.copied {
  background: #28a745;
}

.code-copy-btn.copied::after {
  content: "已复制!";
  position: absolute;
  top: -25px;
  right: 0;
  background: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
}