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

:root {
  --primary: #4A7C59;
  --primary-light: #6B9B7A;
  --secondary: #F4A259;
  --bg: #FDF8F3;
  --card-bg: #FFFFFF;
  --text: #2D3436;
  --text-light: #636E72;
  --border: #E8E0D5;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

header .subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

header nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

header nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

header nav a:hover,
header nav a.active {
  background: rgba(255,255,255,0.2);
}

/* Hero / 首页 */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.parrot-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.parrot-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
}

.parrot-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.parrot-info p {
  opacity: 0.9;
}

.btn-edit {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-edit:hover {
  background: rgba(255,255,255,0.3);
}

/* 快捷操作 */
.quick-actions {
  padding: 2rem 0;
  background: var(--card-bg);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: var(--bg);
  border-radius: 15px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.action-card:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.action-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* 最近动态 */
.recent-activity {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--primary);
  padding-left: 1rem;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -26px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.empty-text {
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
}

/* 分类 */
.category {
  padding: 3rem 0;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.5rem 1.2rem;
  border: none;
  background: var(--bg);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.tab.active,
.tab:hover {
  background: var(--primary);
  color: #fff;
}

/* 按钮 */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* 作品卡片网格 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.work-card:hover {
  transform: translateY(-5px);
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.work-card h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.work-card .author {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.work-card .desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

.work-card .tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: var(--bg);
  border-radius: 15px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  margin-right: 0.3rem;
}

/* 指南列表 */
.guides-list .guide-item {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.guides-list .guide-item h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.guides-list .guide-item p {
  white-space: pre-wrap;
  color: var(--text-light);
  line-height: 1.8;
}

/* 音频列表 */
.audio-list .audio-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  box-shadow: var(--shadow);
}

.audio-item .audio-icon {
  font-size: 1.5rem;
}

.audio-item .audio-info {
  flex: 1;
}

.audio-item .audio-name {
  font-weight: 500;
}

.audio-item .audio-category {
  font-size: 0.8rem;
  color: var(--text-light);
}

.audio-item .audio-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* 日记列表 */
.diary-list .diary-item {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.diary-list .diary-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}

.diary-list .diary-content {
  line-height: 1.8;
}

.diary-list .diary-images {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.diary-list .diary-images img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

.modal-content h3 {
  margin-bottom: 1.5rem;
}

.modal-content form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.modal-content form input,
.modal-content form textarea,
.modal-content form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.modal-content form textarea {
  min-height: 100px;
}

.modal-content .btn-primary {
  width: 100%;
}

/* Footer */
footer {
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 2rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .parrot-profile {
    flex-direction: column;
  }
  
  .actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
