/* 潮鞋收藏 - 书签导航风格样式 */

/* CSS 变量 */
:root {
  --accent-color: #ff5722;
  --primary-color: #ff6b35;
  --secondary-color: #f5f5f5;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg-color: #fff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --gap: 24px;
  --gap-sm: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fafafa;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gap);
}

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

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

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

.nav a {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-color);
  padding: 8px 16px;
  border-radius: 20px;
  width: 240px;
}

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

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

/* 主要内容区 */
.main {
  min-height: calc(100vh - 64px - 200px);
  padding: var(--gap) 0;
}

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, var(--accent-color), #ff8a65);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: var(--gap);
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

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

.hero-btn {
  display: inline-block;
  background: #fff;
  color: var(--accent-color);
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 区块标题 */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* 分类集合 */
.collections {
  margin-bottom: var(--gap);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-sm);
}

.collection-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border-color);
}

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

.collection-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}

.collection-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.collection-card span {
  font-size: 13px;
  color: var(--text-lighter);
}

/* 书签卡片 */
.bookmark-section {
  margin-bottom: var(--gap);
}

.bookmark-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bookmark-card {
  background: var(--bg-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s;
}

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

.bookmark-favicon {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.bookmark-info {
  flex: 1;
  min-width: 0;
}

.bookmark-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-info p {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.bookmark-tag {
  background: rgba(255, 87, 34, 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.bookmark-time {
  font-size: 12px;
  color: var(--text-lighter);
}

/* 文章网格 */
.article-section {
  margin-bottom: var(--gap);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-sm);
}

.article-column {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.article-column h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--secondary-color);
}

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

.article-item::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
}

.article-item a {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.3s;
}

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

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

.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}

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

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

.breadcrumb .current {
  color: var(--text-color);
  font-weight: 500;
}

/* 分类页头部 */
.category-header {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.category-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-header p {
  color: var(--text-light);
  font-size: 14px;
}

/* 过滤器 */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: var(--gap-sm);
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-light);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

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

/* 标签云 */
.tag-cloud {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: var(--gap);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.tag-cloud h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--secondary-color);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-light);
  transition: all 0.3s;
}

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

/* 文章页 */
.article-header {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.4;
}

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

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

.article-content {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: var(--gap);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.article-content p {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.article-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary-color);
}

.article-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
}

.article-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

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

/* 相关推荐 */
.related-section {
  margin-bottom: var(--gap);
}

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

.related-card {
  background: var(--bg-color);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s;
}

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

.related-card h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.related-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* 404页面 */
.error-page {
  text-align: center;
  padding: 80px 0;
}

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

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

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

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

.error-btn:hover {
  background: #e64a19;
}

/* 页脚 */
.footer {
  background: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

.footer-brand p {
  color: var(--text-light);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-light);
  font-size: 13px;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  color: var(--text-lighter);
  font-size: 13px;
}

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

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

  .related-grid {
    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: 12px var(--gap);
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    gap: 20px;
  }

  .search-box {
    width: auto;
    flex: 1;
    margin-left: 16px;
  }

  .hero {
    padding: 40px 0;
  }

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

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bookmark-card {
    flex-wrap: wrap;
  }

  .bookmark-meta {
    width: 100%;
    margin-left: 56px;
  }
}

@media (max-width: 480px) {
  :root {
    --gap: 16px;
    --gap-sm: 12px;
  }

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

  .article-header,
  .article-content {
    padding: 20px;
  }

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

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