/* 复古奢侈品 - 产品目录风格 */
:root {
  --accent-color: #c9a86c;
  --primary-dark: #1a1a1a;
  --secondary-dark: #2d2d2d;
  --text-light: #f5f5f5;
  --text-muted: #999;
  --bg-light: #fafafa;
  --border-color: #e0e0e0;
  --gold-gradient: linear-gradient(135deg, #c9a86c 0%, #f0d99c 50%, #c9a86c 100%);
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

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

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

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

ul {
  list-style: none;
}

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

/* Header */
.header {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.search-box {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border: 1px solid var(--secondary-dark);
  border-radius: 4px;
  background: var(--secondary-dark);
  color: var(--text-light);
  font-size: 0.9rem;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--accent-color);
  cursor: pointer;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Categories */
.categories {
  padding: 2rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.categories-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.categories-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.category-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-item {
  padding: 0.8rem 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: all 0.3s;
  font-size: 0.9rem;
}

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

/* Section Title */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
  margin-left: 1rem;
}

/* Product Grid */
.products-section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
  aspect-ratio: 1;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-info {
  padding: 1rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

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

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.product-rating {
  color: #ffc107;
  font-size: 0.85rem;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.product-btn {
  display: block;
  width: 100%;
  padding: 0.7rem;
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.product-btn:hover {
  background: var(--accent-color);
}

/* Articles Section */
.articles-section {
  padding: 3rem 1rem;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.articles-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-column h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.article-list li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-dark);
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

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

/* Footer */
.footer {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 3rem 1rem 1rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-dark);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

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

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

/* Category Header */
.category-header {
  padding: 2rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.category-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.category-header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.category-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Filter */
.filter-bar {
  padding: 1rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-group select {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  font-size: 0.85rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.pagination a {
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--secondary-dark);
}

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

.pagination .current {
  background: var(--primary-dark);
  color: #fff;
}

/* Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--secondary-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary-dark);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.8rem;
  color: var(--primary-dark);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

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

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

/* Product Detail */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.product-gallery {
  background: var(--bg-light);
  aspect-ratio: 1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-info-detail h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.product-rating-large {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-price-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4caf50;
  margin-bottom: 1.5rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  flex: 1;
  padding: 1rem 2rem;
  background: var(--primary-dark);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

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

.btn-secondary {
  padding: 1rem 2rem;
  background: #fff;
  color: var(--primary-dark);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

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

.product-description {
  margin-bottom: 2rem;
}

.product-description h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.product-description p {
  color: var(--text-muted);
  line-height: 1.8;
}

.specs-list {
  display: grid;
  gap: 0.8rem;
}

.spec-item {
  display: flex;
  padding: 0.8rem;
  background: var(--bg-light);
  border-radius: 4px;
}

.spec-label {
  width: 120px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.spec-value {
  flex: 1;
  color: var(--primary-dark);
  font-weight: 500;
}

/* Reviews */
.reviews-section {
  margin-bottom: 3rem;
}

.reviews-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.review-item {
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.review-author {
  font-weight: 600;
}

.review-date {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.review-content {
  color: var(--secondary-dark);
  line-height: 1.6;
}

/* Related Products */
.related-section {
  margin-bottom: 3rem;
}

.related-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

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

/* 404 Page */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-dark);
  }

  .search-box {
    max-width: none;
    flex: 1;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .category-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .category-item {
    white-space: nowrap;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

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

  .filter-inner {
    gap: 1rem;
  }
}

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

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

  .error-code {
    font-size: 5rem;
  }
}
