/* 躺平发育 - 软件下载站样式 */

:root {
  --accent-color: #2196f3;
  --primary-color: #1976d2;
  --secondary-color: #424242;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --text-primary: #212121;
  --text-secondary: #757575;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --radius: 8px;
  --max-width: 1200px;
}

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

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

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

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

ul {
  list-style: none;
}

/* 头部 */
.header {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  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: 64px;
}

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

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

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

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.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-color);
  border-radius: 24px;
  padding: 8px 16px;
  width: 280px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.search-box button {
  border: none;
  background: var(--accent-color);
  color: white;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
}

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

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

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-search input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 16px;
  outline: none;
}

.hero-search button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 0 32px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 500;
}

/* 分类标签 */
.category-tags {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.category-tag {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 10px 24px;
  border-radius: 24px;
  font-weight: 500;
  transition: all 0.3s;
}

.category-tag:hover {
  background: white;
  color: var(--accent-color);
}

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

.section-title {
  font-size: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

/* 软件卡片 */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

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

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

.software-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.software-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 700;
}

.software-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

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

.software-version {
  display: inline-block;
  background: var(--bg-color);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.software-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.software-size {
  color: var(--text-secondary);
  font-size: 13px;
}

.download-btn {
  background: var(--accent-color);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

.download-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* 分类页布局 */
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

/* 筛选面板 */
.filter-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  height: fit-content;
  position: sticky;
  top: 88px;
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-color);
}

.filter-option:hover {
  color: var(--accent-color);
}

/* 面包屑 */
.breadcrumb {
  background: var(--card-bg);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

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

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

.category-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.category-header p {
  color: var(--text-secondary);
}

/* 软件列表 */
.software-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.software-list-item:hover {
  box-shadow: var(--shadow-hover);
}

.software-list-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 700;
  flex-shrink: 0;
}

.software-list-info {
  flex: 1;
}

.software-list-info h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.software-list-meta {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

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

.software-list-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.software-list-action {
  text-align: right;
}

.software-list-action .download-btn {
  display: inline-block;
  margin-bottom: 8px;
}

.download-count {
  color: var(--text-secondary);
  font-size: 13px;
}

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

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

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

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

/* 文章页 */
.article-container {
  max-width: 900px;
  margin: 0 auto;
}

.article-header {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.article-header h1 {
  font-size: 32px;
  margin-bottom: 16px;
  line-height: 1.3;
}

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

.article-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.article-content h2 {
  font-size: 24px;
  margin: 32px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-color);
}

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

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

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

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

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

/* 下载信息框 */
.download-box {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  color: white;
  padding: 32px;
  border-radius: var(--radius);
  margin: 32px 0;
  text-align: center;
}

.download-box h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.download-box p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.download-box .download-btn-large {
  display: inline-block;
  background: white;
  color: var(--accent-color);
  padding: 16px 48px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s;
}

.download-box .download-btn-large:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.file-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.9;
}

/* 系统要求 */
.requirements {
  background: var(--bg-color);
  padding: 24px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.requirements h4 {
  margin-bottom: 16px;
  font-size: 18px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.requirement-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.requirement-label {
  color: var(--text-secondary);
}

.requirement-value {
  font-weight: 500;
}

/* 404页面 */
.error-page {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

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

.error-title {
  font-size: 28px;
  margin-bottom: 16px;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 24px;
  font-weight: 500;
  transition: all 0.3s;
}

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

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

.btn-secondary {
  background: var(--bg-color);
  color: var(--text-primary);
}

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

/* 三栏文章区 */
.three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

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

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

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

.article-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.article-list li a::before {
  content: '•';
  color: var(--accent-color);
}

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

/* 页脚 */
.footer {
  background: var(--secondary-color);
  color: white;
  padding: 48px 20px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  line-height: 1.6;
}

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

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

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

  .filter-panel {
    position: static;
    display: none;
  }

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

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

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

  .nav {
    display: none;
  }

  .search-box {
    width: 100%;
    margin-top: 12px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .hero-search {
    flex-direction: column;
  }

  .hero-search button {
    padding: 16px;
  }

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

  .software-list-item {
    flex-direction: column;
    text-align: center;
  }

  .software-list-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .software-list-action {
    text-align: center;
  }

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

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

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

  .file-info {
    flex-direction: column;
    gap: 8px;
  }

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

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

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

@media (max-width: 480px) {
  .main {
    padding: 20px 16px;
  }

  .category-tags {
    gap: 8px;
  }

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

  .software-card {
    padding: 20px;
  }

  .pagination a,
  .pagination span {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}
