/* ============================================
   美睫产品 - 产品目录风格样式
   域名: www.meijiepingce.cn
   关键词: 美睫产品、美睫产品介绍、美睫产品评测、睫毛品牌推荐
   ============================================ */

/* CSS 变量定义 */
:root {
  --accent-color: #ff9800;
  --primary-color: #e91e63;
  --secondary-color: #f8bbd9;
  --text-color: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg-color: #fff;
  --bg-light: #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: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 60px;
}

/* 重置样式 */
* {
  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: var(--bg-color);
}

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

ul, ol {
  list-style: none;
}

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

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

.section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-color);
}

/* ============================================
   页头 Header
   ============================================ */
.header {
  height: var(--header-height);
  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: 100%;
}

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

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

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

.nav a {
  font-size: 14px;
  color: var(--text-color);
  transition: color 0.3s;
}

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

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: 20px;
  padding: 6px 16px;
  width: 240px;
}

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

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

/* ============================================
   Hero 区域
   ============================================ */
.hero {
  background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
  padding: 60px 0;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.hero-search {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: var(--bg-color);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.hero-search button {
  padding: 16px 32px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s;
}

.hero-search button:hover {
  background: #c2185b;
}

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

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

.category-item {
  padding: 12px 24px;
  background: var(--bg-color);
  border-radius: 24px;
  font-size: 14px;
  color: var(--text-color);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

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

/* ============================================
   产品卡片
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  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;
  font-size: 48px;
}

.product-info {
  padding: 16px;
}

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

.product-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.stars {
  color: #ffc107;
}

/* ============================================
   文章卡片
   ============================================ */
.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-color);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s;
}

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

.article-image {
  aspect-ratio: 16/9;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.article-content {
  padding: 16px;
}

.article-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

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

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

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

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

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

.filter-label {
  font-size: 13px;
  color: var(--text-muted);
}

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

.filter-option {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-color);
  transition: all 0.3s;
}

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

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

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

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

.pagination .disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ============================================
   文章详情页
   ============================================ */
.article-header {
  padding: 40px 0;
  background: var(--bg-light);
}

.article-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-info {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-body {
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--text-color);
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-color);
}

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

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

.article-body ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-light);
}

.article-body ol li {
  list-style: decimal;
  margin-bottom: 8px;
  color: var(--text-light);
}

.article-body strong {
  color: var(--text-color);
  font-weight: 600;
}

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

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

.product-header h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-rating-large {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.product-price-large {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 16px;
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 24px;
}

.product-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: #c2185b;
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

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

.product-section {
  margin-top: 32px;
}

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

.specs-list {
  display: grid;
  gap: 12px;
}

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

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

.spec-value {
  flex: 1;
  color: var(--text-color);
  font-size: 14px;
}

/* ============================================
   评价区域
   ============================================ */
.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.review-author {
  font-weight: 500;
  color: var(--text-color);
}

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

.review-content {
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   侧边栏文章列表
   ============================================ */
.sidebar-section {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

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

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

.sidebar-list a {
  font-size: 14px;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ============================================
   三栏文章布局
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.articles-column h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.articles-column ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.articles-column ul li:last-child {
  border-bottom: none;
}

.articles-column a {
  font-size: 14px;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ============================================
   两栏文章布局
   ============================================ */
.articles-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

/* ============================================
   404 页面
   ============================================ */
.error-page {
  min-height: calc(100vh - var(--header-height) - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

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

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
}

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

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

/* ============================================
   页脚 Footer
   ============================================ */
.footer {
  background: #263238;
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 60px;
}

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

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

.footer-brand p {
  font-size: 14px;
  color: #b0bec5;
  line-height: 1.6;
}

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

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

.footer-links a {
  font-size: 14px;
  color: #b0bec5;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #37474f;
  text-align: center;
  font-size: 13px;
  color: #78909c;
}

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

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

@media (max-width: 768px) {
  .header .nav {
    display: none;
  }

  .search-box {
    width: 160px;
  }

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

  .hero-search {
    margin: 0 20px;
  }

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

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

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

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

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

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

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

  .filter-group {
    flex-wrap: wrap;
  }

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

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

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

  .hero-search {
    flex-direction: column;
    border-radius: var(--radius);
  }

  .hero-search button {
    border-radius: 0 0 var(--radius) var(--radius);
  }
}
