/* ===== 香水调香 - 全局样式 ===== */
:root {
  --accent-color: #8b5a5a;
  --accent-light: #c9a0a0;
  --bg-primary: #faf8f5;
  --bg-secondary: #f5f0eb;
  --text-primary: #3d3d3d;
  --text-secondary: #6b6b6b;
  --text-muted: #999;
  --border-color: #e8e0d8;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --header-height: 64px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* ===== 布局容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 1px;
}

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

.nav a {
  color: var(--text-secondary);
  font-size: 15px;
}

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

.search-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.search-btn:hover {
  border-color: var(--accent-color);
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

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

.breadcrumb span {
  margin: 0 8px;
}

/* ===== 个人资料头部 ===== */
.profile-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #fff 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  box-shadow: var(--shadow);
}

.profile-name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.profile-role {
  font-size: 16px;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.profile-bio {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 24px;
}

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

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-color);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

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

.social-links a {
  padding: 8px 20px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.social-links a:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(139,90,90,0.05);
}

/* ===== 内容区域 ===== */
.content-section {
  padding: 40px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* ===== 文章列表 ===== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all 0.2s;
}

.article-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
}

.article-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.article-item:hover .article-title {
  color: var(--accent-color);
}

.article-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

.article-summary {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.7;
}

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

.column-section {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.column-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--accent-color);
}

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

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

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

.column-list a {
  color: var(--text-secondary);
  display: block;
}

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

/* ===== 分类页样式 ===== */
.category-header {
  background: var(--bg-secondary);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.category-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.category-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}

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

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

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

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

/* ===== 文章详情页 ===== */
.article-header {
  text-align: center;
  padding: 40px 0;
}

.article-detail-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-detail-meta {
  color: var(--text-muted);
  font-size: 14px;
}

.article-detail-meta span {
  margin: 0 12px;
}

.featured-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.featured-image img {
  width: 100%;
  height: auto;
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-primary);
}

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

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 20px;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-primary);
}

/* ===== 相关文章 ===== */
.related-section {
  background: var(--bg-secondary);
  padding: 40px 0;
  margin-top: 48px;
}

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

.related-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
}

.related-card:hover {
  box-shadow: var(--shadow-hover);
}

.related-card-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.related-card:hover .related-card-title {
  color: var(--accent-color);
}

.related-card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 404页面 ===== */
.error-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.error-code {
  font-size: 120px;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

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

.error-actions {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

.btn-primary:hover {
  background: #7a4f4f;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ===== 页脚 ===== */
.footer {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  margin-top: 60px;
}

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

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .container {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .profile-header {
    padding: 40px 0 32px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-stats {
    gap: 24px;
  }

  .article-detail-title {
    font-size: 24px;
  }

  .article-content {
    font-size: 15px;
  }

  .error-code {
    font-size: 80px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .social-links {
    flex-wrap: wrap;
    padding: 0 16px;
  }

  .social-links a {
    padding: 6px 14px;
    font-size: 13px;
  }

  .category-stats {
    flex-direction: column;
    gap: 16px;
  }

  .error-actions {
    flex-direction: column;
  }
}
