/* ========================================
   潮流单品 - 清单文章风格样式
   主色调: #4caf50 (绿色)
   ======================================== */

/* CSS 变量 */
:root {
  --accent-color: #4caf50;
  --accent-dark: #388e3c;
  --accent-light: #c8e6c9;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #999;
  --bg-white: #fff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 60px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-light);
}

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

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

ul {
  list-style: none;
}

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

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

/* ========================================
   页头 Header
   ======================================== */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
}

.logo span {
  color: var(--text-primary);
}

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

.nav a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

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

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

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

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

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

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

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

.breadcrumb span {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb .current {
  color: var(--text-primary);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
  color: var(--bg-white);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   卡片组件
   ======================================== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-body {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  gap: 15px;
  margin-top: 15px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========================================
   清单列表组件
   ======================================== */
.listicle-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.listicle-number {
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.listicle-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.listicle-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   区块标题
   ======================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.view-more {
  font-size: 14px;
  color: var(--accent-color);
}

/* ========================================
   网格布局
   ======================================== */
.grid {
  display: grid;
  gap: 20px;
}

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

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

/* ========================================
   文章列表
   ======================================== */
.article-list {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.article-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.article-thumb {
  width: 80px;
  height: 60px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 12px;
  flex-shrink: 0;
}

.article-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.article-info h4:hover {
  color: var(--accent-color);
}

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

/* ========================================
   分类标签
   ======================================== */
.topic-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.topic-tag {
  padding: 10px 24px;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s;
}

.topic-tag:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ========================================
   排序选项
   ======================================== */
.sort-options {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

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

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

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

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
}

.pagination a {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.pagination .current {
  background: var(--accent-color);
  color: var(--bg-white);
}

/* ========================================
   文章详情页
   ======================================== */
.article-header {
  background: var(--bg-white);
  padding: 40px 0;
  text-align: center;
}

.article-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.quick-nav {
  background: var(--accent-light);
  padding: 15px;
  border-radius: var(--radius);
  margin: 30px 0;
  text-align: center;
}

.quick-nav span {
  font-weight: 600;
  margin-right: 10px;
  color: var(--accent-dark);
}

.quick-nav a {
  margin: 0 8px;
  padding: 4px 12px;
  background: var(--bg-white);
  border-radius: 16px;
  font-size: 14px;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.summary-box {
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 30px 0;
}

.summary-box h3 {
  margin-bottom: 10px;
  color: var(--accent-dark);
}

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

.column-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.column-section li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

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

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

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

/* ========================================
   相关推荐
   ======================================== */
.related-section {
  background: var(--bg-white);
  padding: 30px 0;
  margin-top: 40px;
}

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

.related-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}

.related-card h4 {
  font-size: 15px;
  margin-bottom: 8px;
}

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

/* ========================================
   页脚 Footer
   ======================================== */
.footer {
  background: var(--text-primary);
  color: var(--bg-white);
  padding: 40px 0 20px;
  margin-top: 60px;
}

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

.footer-brand p {
  margin-top: 10px;
  color: #aaa;
  font-size: 14px;
}

.footer-links h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

/* ========================================
   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: 120px;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

.error-title {
  font-size: 28px;
  margin: 20px 0 10px;
}

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

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent-color);
  color: var(--bg-white);
  border-radius: 24px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--bg-white);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 20px;
  }

  .nav {
    order: 3;
    width: 100%;
    gap: 15px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
  }

  .hero h1 {
    font-size: 28px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .article-header h1 {
    font-size: 24px;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .topic-tags {
    gap: 8px;
  }

  .topic-tag {
    padding: 8px 16px;
    font-size: 14px;
  }
}
