:root {
  --bg: #faf8f5;
  --card-bg: #ffffff;
  --text: #2c2416;
  --muted: #7b725a;
  --accent: #8b5e3c;
  --border: #e7e0d5;
  --radius: 12px;
}

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

body {
  font-family: "Georgia", "Times New Roman", "Noto Serif SC", "STSong", "Songti SC", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 720px; margin: 0 auto; padding: 0 24px; }

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

/* 演示条 */
.demo-bar {
  text-align: center; padding: 10px; background: #f5f0e8;
  border-bottom: 1px solid var(--border); color: #9a8b78; font-size: 0.85rem; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.demo-bar a { color: var(--accent); font-weight: 600; }

/* 导航 */
.nav {
  display: flex; justify-content: center; gap: 30px; padding: 28px 0;
  border-bottom: 1px solid var(--border); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.nav a { font-size: 1rem; color: var(--muted); border: none; letter-spacing: 1px; }
.nav a:hover, .nav a.active { color: var(--text); }

/* 首页英雄 */
.hero {
  text-align: center; padding: 70px 0 50px;
}
.hero img {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); margin-bottom: 24px;
}
.hero h1 { font-size: 2.8rem; font-weight: 400; letter-spacing: 2px; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 1.1rem; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }

/* 页面标题 */
.page-title { font-size: 2rem; font-weight: 400; margin: 50px 0 30px; letter-spacing: 1px; }

/* 卡片 */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* 作品网格 */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.work-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: block; transition: 0.2s;
}
.work-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-2px); }
.work-item img { width: 100%; height: 180px; object-fit: cover; }
.work-item .info { padding: 20px; }
.work-item h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.work-item .cat { color: var(--muted); font-size: 0.9rem; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }

/* 按钮 */
.btn {
  display: inline-block; padding: 10px 28px; border-radius: 30px;
  background: var(--accent); color: #fff; font-weight: 600; letter-spacing: 1px;
  border: none; cursor: pointer; text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  transition: 0.2s;
}
.btn:hover { background: #6d4228; }

/* 联系表单 */
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: 8px; font-size: 1rem;
  margin-bottom: 15px; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 页脚 */
footer {
  text-align: center; padding: 40px 20px; color: var(--muted);
  border-top: 1px solid var(--border); margin-top: 40px; font-size: 0.9rem;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 响应式 */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .work-grid { grid-template-columns: 1fr; }
}