/* 盆栽 - 绿植主题样式 */
:root {
  --primary-color: #4a7c59;
  --accent-color: #6b9c75;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #f8f9f5;
  --bg-white: #fff;
  --border-color: #e0e5dc;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

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

/* 头部 */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--text-color);
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary-color);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-color);
  border-radius: 20px;
  padding: 6px 16px;
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  width: 160px;
  font-size: 0.9rem;
}

.search-box button {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-light);
}

/* 个人资料头部 */
.profile-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.3);
  margin-bottom: 20px;
  object-fit: cover;
}

.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-role {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.profile-bio {
  max-width: 600px;
  margin: 0 auto 24px;
  opacity: 0.85;
  line-height: 1.8;
}

.profile-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  color: #fff;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.profile-links a:hover {
  background: rgba(255,255,255,0.25);
}

/* 内容区域 */
.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

/* 活动列表 */
.activity-list {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  color: var(--primary-color);
}

.activity-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.activity-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.activity-time {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-left: auto;
  white-space: nowrap;
}

/* 三栏布局 */
.three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.column {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.column h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.column ul {
  list-style: none;
}

.column li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.column li:last-child {
  border-bottom: none;
}

.column a {
  color: var(--text-color);
  display: block;
  transition: color 0.3s;
}

.column a:hover {
  color: var(--primary-color);
}

/* 面包屑 */
.breadcrumb {
  background: var(--bg-white);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb span {
  margin: 0 8px;
}

/* 分类头部 */
.category-header {
  background: var(--bg-white);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.category-title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.category-desc {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 20px;
}

.category-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

/* 内容列表 */
.content-list {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

.content-item {
  display: flex;
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s;
}

.content-item:hover {
  background: var(--bg-color);
}

.content-item:last-child {
  border-bottom: none;
}

.content-thumb {
  width: 200px;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
  margin-right: 24px;
  flex-shrink: 0;
}

.content-info {
  flex: 1;
}

.content-info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.content-info h3 a {
  color: var(--text-color);
}

.content-info h3 a:hover {
  color: var(--primary-color);
}

.content-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.content-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-color);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.pagination a:hover {
  background: var(--primary-color);
  color: #fff;
}

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

/* 文章页 */
.article-header {
  background: var(--bg-white);
  padding: 40px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 2rem;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.9;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  color: var(--primary-color);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

/* 相关文章 */
.related-section {
  margin-top: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.related-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.related-card h4 {
  padding: 16px;
  font-size: 1rem;
}

.related-card h4 a {
  color: var(--text-color);
}

.related-card h4 a:hover {
  color: var(--primary-color);
}

/* 推荐区域 */
.recommended-section {
  margin-top: 40px;
}

.recommended-links {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.recommended-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
}

.recommended-links li::before {
  content: "•";
  color: var(--primary-color);
  margin-right: 8px;
}

/* 底部 */
.footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}

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

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-column a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

/* 404页面 */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.error-desc {
  color: var(--text-light);
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: background 0.3s;
}

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

/* 响应式 */
@media (max-width: 1024px) {
  .three-columns {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 20px;
    margin-top: 12px;
    overflow-x: auto;
  }

  .search-box {
    display: none;
  }

  .profile-header {
    padding: 40px 16px;
  }

  .profile-name {
    font-size: 1.5rem;
  }

  .profile-links {
    flex-wrap: wrap;
  }

  .content {
    padding: 24px 16px;
  }

  .content-item {
    flex-direction: column;
  }

  .content-thumb {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 16px;
  }

  .category-stats {
    gap: 24px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-featured-image {
    height: 220px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .error-code {
    font-size: 5rem;
  }
}
