/* 奢侈品配件 - 产品规格风格样式表 */
/* 主色调: #607d8b (蓝灰色) */

:root {
  --accent-color: #607d8b;
  --accent-dark: #455a64;
  --accent-light: #90a4ae;
  --text-primary: #212121;
  --text-secondary: #757575;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --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: 4px;
  --max-width: 1200px;
  --gap: 24px;
}

* {
  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-primary);
  background: var(--bg-primary);
}

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

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

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

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

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

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

.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-primary);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.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-secondary);
  border-radius: var(--radius);
  padding: 8px 16px;
  width: 240px;
}

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

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

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

.hero h1 {
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

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

/* 区块标题 */
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.category-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

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

.category-card .icon {
  width: 64px;
  height: 64px;
  background: var(--bg-secondary);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

/* 产品规格卡片 */
.spec-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 24px;
  align-items: center;
  transition: all 0.3s;
}

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

.spec-card .spec-image {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 48px;
}

.spec-card .spec-content {
  flex: 1;
}

.spec-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.spec-card .spec-meta {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.spec-card .spec-params {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.spec-card .param {
  font-size: 13px;
}

.spec-card .param-label {
  color: var(--text-secondary);
}

.spec-card .param-value {
  color: var(--text-primary);
  font-weight: 500;
}

.spec-card .spec-action {
  flex-shrink: 0;
}

/* 按钮 */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

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

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

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

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

/* 规格表格 */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.spec-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table td:first-child {
  font-weight: 500;
  width: 200px;
  background: var(--bg-secondary);
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0;
  background: var(--bg-secondary);
  font-size: 13px;
}

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

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

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

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

/* 文章列表 */
.article-list {
  display: grid;
  gap: 16px;
}

.article-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  transition: all 0.2s;
}

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

.article-item .article-thumb {
  width: 100px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.article-item .article-info {
  flex: 1;
}

.article-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* 三栏布局 */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.col-section h4 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.col-section ul {
  list-style: none;
}

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

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

.col-section a {
  color: var(--text-primary);
  display: block;
}

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

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

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all 0.2s;
}

.pagination a:hover,
.pagination .current {
  background: var(--accent-color);
  color: var(--bg-primary);
  border-color: var(--accent-color);
}

/* 产品详情 */
.product-detail {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 48px;
  padding: 32px 0;
}

.product-image {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.product-info .product-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.product-info .product-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* 规格区块 */
.spec-section {
  margin-bottom: 32px;
}

.spec-section h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-color);
}

.spec-section ul {
  list-style: none;
  padding-left: 15px;
}

.spec-section li {
  padding: 8px 0;
  padding-left: 16px;
  position: relative;
}

.spec-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* 相关产品 */
.related-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.related-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: all 0.2s;
}

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

.related-card .related-image {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.related-card h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

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

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

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

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

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

/* 页脚 */
.footer {
  background: var(--accent-dark);
  color: var(--bg-primary);
  padding: 48px 0 24px;
  margin-top: 48px;
}

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

.footer-brand .logo {
  color: var(--bg-primary);
  margin-bottom: 16px;
}

.footer-brand p {
  opacity: 0.8;
  font-size: 13px;
  line-height: 1.8;
}

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

.footer-col ul {
  list-style: none;
}

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

.footer-col a {
  color: var(--bg-primary);
  opacity: 0.7;
  font-size: 13px;
}

.footer-col a:hover {
  opacity: 1;
}

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

/* 响应式设计 */
@media (max-width: 992px) {
  .category-grid,
  .three-col,
  .related-products {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .product-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

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

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

  .search-box {
    width: 100%;
    order: 2;
  }

  .hero {
    padding: 48px 0;
  }

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

  .category-grid,
  .three-col,
  .related-products {
    grid-template-columns: 1fr;
  }

  .spec-card {
    flex-direction: column;
    text-align: center;
  }

  .spec-card .spec-params {
    justify-content: center;
  }

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

  .spec-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

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

  .article-item .article-thumb {
    width: 100%;
    height: 160px;
  }
}

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

  .section {
    padding: 32px 0;
  }

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

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