:root {
  --bg-1: #f7f5f0;
  --bg-2: #f0ece4;
  --bg-3: #e8e3d9;
  --text-main: #1a2b3c;
  --text-sub: #4a5568;
  --accent: #5c4033;
  --line: #c9b8a5;
  --cont-max: 1100px;
  --space-xl: 80px;
  --space-lg: 48px;
  --space-md: 24px;
  --space-sm: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text-main);
  line-height: 1.8;
  background-color: var(--bg-1);
}

h1, h2, h3, blockquote p {
  font-family: Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 600;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

.cont {
  max-width: var(--cont-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  width: 100%;
  padding: var(--space-xl) 0;
}

.deco-line {
  display: inline-block;
  width: 40px;
  height: 3px;
  background-color: var(--accent);
  margin-right: var(--space-sm);
  vertical-align: middle;
}

/* Header */
.site-header {
  width: 100%;
  background-color: var(--bg-1);
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 1.5rem;
  color: var(--text-main);
  letter-spacing: 2px;
}

.main-nav {
  display: flex;
  gap: var(--space-md);
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--text-sub);
}

.main-nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  background-color: var(--bg-1);
}

.hero .cont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.hero-text .subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero-text p {
  color: var(--text-sub);
  max-width: 480px;
}

.hero-image img {
  width: 100%;
  object-fit: cover;
}

/* Books */
.books {
  background-color: var(--bg-2);
}

.books h2 {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
  color: var(--text-main);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.book-card {
  display: flex;
  flex-direction: column;
}

.book-cover {
  overflow: hidden;
  margin-bottom: var(--space-sm);
  background-color: var(--bg-3);
}

.book-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.03);
}

.book-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-main);
}

.book-info .author {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.book-info .desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Thoughts */
.thoughts {
  background-color: var(--bg-3);
  text-align: center;
}

.thoughts .cont {
  max-width: 800px;
}

.quote-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  opacity: 0.5;
}

.thoughts blockquote p {
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

.quote-author {
  color: var(--accent);
  font-size: 0.95rem;
}

/* About */
.about {
  background-color: var(--bg-1);
}

.about .cont {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image img {
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--text-sub);
  margin-bottom: var(--space-md);
}

.contact {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent);
  font-size: 0.95rem;
}

.feather-icon {
  width: 24px;
  height: 24px;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  background-color: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: var(--space-md) 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 960px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero .cont,
  .about .cont {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-text p {
    margin: 0 auto;
  }

  .about-image {
    order: -1;
  }

  .about-text p,
  .contact {
    justify-content: center;
  }

  .main-nav {
    gap: var(--space-sm);
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 56px;
  }

  .book-grid {
    grid-template-columns: 1fr;
  }

  .thoughts blockquote p {
    font-size: 1.2rem;
  }

  .site-header .cont {
    flex-direction: column;
    gap: 8px;
  }
}
