:root {
  --bg: #ffffff;
  --bg-card: #f8f9fa;
  --text: #1a1a2e;
  --text-muted: #6c757d;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --border: #e8e8e8;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --max-width: 720px;
}

[data-theme="dark"] {
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #a29bfe;
  --accent-light: #6c5ce7;
  --border: #2a2a3e;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.theme-toggle:hover {
  background: var(--bg-card);
}

.hero {
  text-align: center;
  padding: 80px 0 48px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.music-banner {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.music-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border-radius: 16px;
  padding: 24px 28px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.music-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.music-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.music-info {
  flex: 1;
}

.music-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.music-info p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 6px;
}

.ipv6-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.music-arrow {
  font-size: 1.5rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.posts {
  padding-bottom: 60px;
}

.post-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tag {
  background: var(--accent);
  color: #fff;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.post-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.post-title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--accent);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

.post-article {
  padding: 60px 0;
}

.post-article-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 16px 0 32px;
  line-height: 1.3;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 36px 0 16px;
}

.post-content ul,
.post-content ol {
  margin: 16px 0 20px 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
}

.post-content a {
  color: var(--acceent);
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.back-link:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .post-card { padding: 24px; }
  .post-article-title { font-size: 1.7rem; }
  .nav { gap: 20px; }
}