@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Serif+SC:wght@400;700&display=swap');

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 根变量 - 余林茂网站主题色 */
:root {
  --primary: #2c4a7c; /* 深蓝色 */
  --primary-foreground: #ffffff;
  --secondary: #d4a547; /* 金黄色 */
  --secondary-foreground: #1a1a1a;
  --background: #ffffff;
  --foreground: #2c2c2c;
  --muted: #f5f5f5;
  --muted-foreground: #666666;
  --border: #e0e0e0;
  --card: #ffffff;
  --card-foreground: #2c2c2c;
}

/* 基础样式 */
body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

/* 容器 */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* 顶部导航栏 */
header {
  background-color: var(--primary);
  color: var(--primary-foreground);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header .container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-foreground);
  font-weight: bold;
  font-size: 1.125rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
}

nav {
  display: none;
}

@media (min-width: 768px) {
  nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
  }
}

nav a:hover {
  color: var(--secondary);
}

/* 英雄区 */
.hero {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid var(--secondary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
  .hero-avatar {
    width: 10rem;
    height: 10rem;
  }
}

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

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-primary:hover {
  background-color: #c49540;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* 读书会简介 */
.intro-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.intro-section .container {
  max-width: 56rem;
}

.section-title {
  font-size: 1.875rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.intro-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.intro-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.intro-card p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--card-foreground);
}

/* 活动回顾 */
.activities-section {
  padding: 4rem 0;
  background-color: var(--muted);
}

.activities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.activity-card {
  background-color: var(--card);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.activity-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.activity-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--muted);
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.activity-card:hover .activity-image img {
  transform: scale(1.05);
}

.activity-content {
  padding: 1.5rem;
}

.activity-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.activity-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.activity-content p {
  color: var(--muted-foreground);
  line-height: 1.75;
}

/* 微信二维码 */
.qrcode-section {
  padding: 4rem 0;
  background-color: var(--background);
  text-align: center;
}

.qrcode-section .container {
  max-width: 42rem;
}

.qrcode-section h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .qrcode-section h2 {
    font-size: 1.875rem;
  }
}

.qrcode-section p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.qrcode-wrapper {
  display: inline-block;
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.qrcode-wrapper img {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* 页脚 */
footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.875rem;
  line-height: 1.75;
  opacity: 0.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}
