/* 基础样式与变量定义 */
:root {
  --primary-color: #8B0000;      /* 中国红 - 瓷器经典色 */
  --secondary-color: #1A5276;    /* 青花蓝 - 瓷器经典色 */
  --accent-color: #D68910;       /* 帝王黄 - 点缀色 */
  --neutral-light: #F8F9FA;      /* 浅灰背景 */
  --neutral-dark: #2C3E50;       /* 深色文本 */
  --text-muted: #6C757D;         /* 次要文本 */
  --border-color: #E9ECEF;       /* 边框色 */
}

body {
  font-family: "Noto Serif SC", "SimSun", "Microsoft YaHei", serif;
  color: var(--neutral-dark);
  background-color: #FFFFFF;
  line-height: 1.8;
  background-image: url('../assets/background/bg-texture.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  background-color: rgba(255,255,255,0.95);
}

/* 容器样式 */
.container-custom {
  max-width: 1200px;
  padding: 0 1.5rem;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

/* 头部样式 */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
  text-align: center;
}

.logo-img {
  transition: all 0.3s ease;
  max-height: 80px;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* 英雄区域 */
.hero-section {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neutral-light) 0%, #fff 100%);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  max-width: 800px;
  margin: 0 auto 2rem;
  font-style: italic;
}

.porcelain-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  border: 8px solid #fff;
}

/* 工艺介绍区域 */
.craft-section {
  margin: 4rem 0;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.craft-card {
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--neutral-light);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid transparent;
}

.craft-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: var(--accent-color);
}

.craft-card h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.craft-card h3 i {
  color: var(--accent-color);
  margin-right: 0.75rem;
  font-size: 1.8rem;
}

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

/* 产品展示 */
.products-section {
  margin: 4rem 0;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 联系区域 */
.contact-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem;
  border-radius: 12px;
  margin: 4rem 0;
  text-align: center;
}

.contact-section h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.contact-section p {
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn-contact {
  background-color: white;
  color: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-contact:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 页脚样式 */
.site-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.security-img {
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .container-custom {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
  }

  .hero-section {
    padding: 2rem 0;
  }

  .craft-card {
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .contact-section {
    padding: 2rem 1rem;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.craft-card, .product-card {
  animation: fadeIn 0.5s ease forwards;
}

.craft-card:nth-child(1) { animation-delay: 0.1s; }
.craft-card:nth-child(2) { animation-delay: 0.2s; }
.craft-card:nth-child(3) { animation-delay: 0.3s; }

.product-card:nth-child(1) { animation-delay: 0.4s; }
.product-card:nth-child(2) { animation-delay: 0.5s; }
.product-card:nth-child(3) { animation-delay: 0.6s; }