:root {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #22c55e; /* Neon Green */
  --primary-hover: #16a34a;
  --secondary: #8b5cf6; /* Violet */
  --border-color: #334155;
  --radius-sm: 4px;
  --radius-md: 8px;
  --container-width: 1100px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 32px; border-radius: var(--radius-sm); }

/* Hero */
.hero {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 60%);
  z-index: -1;
  animation: pulse 10s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  border-left: 3px solid var(--secondary);
  padding-left: 1rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 1px solid transparent;
}
.btn img { width: 18px; }
.btn-primary {
  background: var(--primary);
  color: #000;
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}
.btn.baidu { background: #2563eb; color: #fff; }
.btn.quark { background: #a855f7; color: #fff; }
.btn-ghost {
  border-color: var(--border-color);
  color: var(--text-muted);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.hero-image {
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

/* Sections */
.section-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}
.section { padding: 4rem 0; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}
.feature-card:hover {
  border-color: var(--secondary);
}
.feature-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: auto;
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
}
.gallery-grid img:hover {
  transform: scale(1.02);
  z-index: 10;
  border-color: var(--primary);
}

/* Posts */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg-card);
  border-left: 3px solid transparent;
  transition: 0.2s;
}
.post-item:hover {
  border-left-color: var(--primary);
  background: #232d42;
}
.post-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.post-title {
  font-weight: 600;
  color: var(--text-main);
}

/* Friends */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.friend-link {
  background: var(--bg-card);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-color);
}
.friend-link img { width: 20px; height: 20px; border-radius: 50%; }
.friend-link:hover { border-color: var(--secondary); color: var(--secondary); }

/* Comments */
.comments-list {
  display: grid;
  gap: 1rem;
}
.comment {
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 1rem;
}
.comment-avatar {
  width: 40px;
  height: 40px;
  background: var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
}
.comment-content h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}
.comment-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}
