:root {
  --bg-body: #fdfbf7; /* Warm Paper */
  --bg-card: #ffffff;
  --text-main: #2c2c2c;
  --text-muted: #777777;
  --primary: #ea580c; /* Orange */
  --primary-hover: #c2410c;
  --secondary: #f59e0b; /* Amber */
  --border-color: #e5e5e5;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --container-width: 960px;
  --font-serif: "Merriweather", "Georgia", serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

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

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
}

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 2rem;
}

/* Header */
.site-header {
  padding: 2rem 0;
  text-align: center;
}
.header-inner {
  display: flex;
  justify-content: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-main);
  background: var(--bg-card);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}
.brand img { width: 32px; height: 32px; border-radius: 50%; }

/* Hero */
.hero {
  padding: 4rem 0 6rem;
  text-align: center;
}
.hero-content {
  max-width: 700px;
  margin: 0 auto 3rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn img { width: 20px; }
.btn-primary {
  background: var(--text-main);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.btn.baidu { background: #3b82f6; color: white; }
.btn.quark { background: #8b5cf6; color: white; }
.btn-ghost {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  border-color: var(--text-main);
}
.hero-image-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

/* Sections */
.section { padding: 5rem 0; }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: var(--primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.feature-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.feature-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

/* Gallery */
.gallery-wrapper {
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.gallery-wrapper::-webkit-scrollbar { display: none; }
.gallery-flex {
  display: flex;
  gap: 2rem;
}
.gallery-flex img {
  flex: 0 0 260px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}
.gallery-flex img:hover {
  transform: rotate(-2deg) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Posts */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.post-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.post-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Friends */
.friends-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.friend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
}
.friend-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.friend-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.friend-info strong { display: block; font-family: var(--font-serif); }

/* Comments */
.comments-masonry {
  column-count: 3;
  column-gap: 2rem;
}
.comment-card {
  break-inside: avoid;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.comment-author {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: block;
}
.comment-text {
  font-style: italic;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 4rem 0;
  text-align: center;
  color: var(--text-muted);
  background: #f3f0e9;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .comments-masonry { column-count: 1; }
  .container { padding: 0 1.5rem; }
}
