/* ===== 古董 - 样式表 ===== */
/* 产品目录风格 | 主色调: #ff9800 */

/* ===== CSS 变量 ===== */
:root {
  --accent-color: #ff9800;
  --accent-dark: #e65100;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --bg-white: #fff;
  --bg-light: #f5f5f5;
  --bg-dark: #2c2c2c;
  --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-sm: 4px;
}

/* ===== 重置与基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

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

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

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

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

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

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

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

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input {
  width: 240px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
}

.header-search input:focus {
  border-color: var(--accent-color);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s;
}

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

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}

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

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: var(--bg-white);
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--accent-color);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
}

.hero-search input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  outline: none;
}

/* ===== 分类导航 ===== */
.categories {
  padding: 40px 0;
  background: var(--bg-white);
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: center;
}

.category-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 32px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.3s;
  min-width: 120px;
}

.category-item:hover {
  background: var(--accent-color);
  color: var(--bg-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.category-name {
  font-weight: 500;
}

/* ===== 产品卡片 ===== */
.products {
  padding: 40px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

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

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

.product-image {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 48px;
}

.product-info {
  padding: 16px;
}

.product-category {
  font-size: 12px;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  color: var(--accent-color);
}

.product-price span {
  font-size: 14px;
  font-weight: normal;
  color: var(--text-light);
}

.product-rating {
  color: #ffc107;
  font-size: 14px;
}

.product-btn {
  width: 100%;
}

/* ===== 文章列表 ===== */
.articles {
  padding: 40px 0;
  background: var(--bg-white);
}

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

.article-col {
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.article-col-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

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

.article-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-color);
}

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

.article-list a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s;
}

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

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

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

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

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

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

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

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

/* ===== 页面标题区 ===== */
.page-header {
  padding: 40px 0;
  background: var(--bg-white);
  text-align: center;
}

.page-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.page-count {
  color: var(--text-secondary);
}

/* ===== 筛选器 ===== */
.filter-bar {
  padding: 16px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.filter-option {
  padding: 6px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-option:hover,
.filter-option.active {
  background: var(--accent-color);
  color: var(--bg-white);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
}

.page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.page-item:hover,
.page-item.active {
  background: var(--accent-color);
  color: var(--bg-white);
}

.page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== 文章详情页 ===== */
.article-detail {
  padding: 40px 0;
}

.article-header {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

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

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

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

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

.article-price-tag {
  font-size: 32px;
  font-weight: bold;
  color: var(--accent-color);
  margin: 24px 0;
}

.article-price-tag span {
  font-size: 16px;
  color: var(--text-light);
  font-weight: normal;
}

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

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

.article-content h2:first-child {
  margin-top: 0;
}

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

.article-specs {
  list-style: none;
  margin: 16px 0;
}

.article-specs li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
}

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

.spec-label {
  width: 120px;
  color: var(--text-light);
}

.spec-value {
  flex: 1;
  color: var(--text-primary);
}

.article-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.gallery-item {
  aspect-ratio: 16/10;
  background: var(--bg-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

/* ===== 相关推荐 ===== */
.related-section {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.related-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

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

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

.related-thumb {
  aspect-ratio: 1;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 24px;
}

.related-name {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--bg-dark);
  color: var(--bg-white);
  padding: 60px 0 24px;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-desc {
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  font-size: 14px;
}

.footer-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}

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

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

/* ===== 404 页面 ===== */
.error-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.error-content {
  max-width: 480px;
}

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

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

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

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .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-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

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

  .header-search {
    order: 2;
  }

  .header-search input {
    width: 160px;
  }

  .hero {
    padding: 48px 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-search {
    flex-direction: column;
    padding: 0 20px;
  }

  .category-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
  }

  .category-item {
    min-width: 100px;
    padding: 16px 20px;
    flex-shrink: 0;
  }

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

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

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

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

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

  .filter-inner {
    gap: 12px;
  }

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

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

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .page-title {
    font-size: 24px;
  }
}
