/* @import url('https://fonts.googleapis.com/css2?family=Signika:wght@300..700&display=swap'); */
@import './fonts.css';
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Signika', monospace;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  text-transform: uppercase;
  text-align: center;
  font-size: 10vw;
  font-weight: 400;
}

p {
  text-transform: uppercase;
  font-family: 'Akkurat Mono', sans-serif;
  font-family: 13px;
}

.intro, .outro {
  position: relative;
  width: 100%;
  height: 120vh;
  background-color: #101214;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4em;
  overflow: hidden;
}

.embroidery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Microsoft YaHei", sans-serif;
}

.embroidery-intro {
  text-align: center;
  margin-bottom: 40px;
}

.embroidery-intro h2 {
  color: #8B0000;
  font-size: 2.2em;
  margin-bottom: 15px;
}

.embroidery-intro p {
  color: #555;
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

.embroidery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.embroidery-item {
  background: #FFF9F9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.embroidery-item:hover {
  transform: translateY(-10px);
}

.embroidery-image {
  height: 220px;
  overflow: hidden;
}

.embroidery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.embroidery-item:hover .embroidery-image img {
  transform: scale(1.05);
}

.embroidery-content {
  padding: 20px;
}

.embroidery-content h3 {
  color: #8B0000;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.embroidery-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 不同绣种的特色边框 */
.su-embroidery {
  border-top: 4px solid #4B8BBE; /* 苏绣蓝 */
}

.xiang-embroidery {
  border-top: 4px solid #C72C41; /* 湘绣红 */
}

.yue-embroidery {
  border-top: 4px solid #FFD700; /* 粤绣金 */
}

.shu-embroidery {
  border-top: 4px solid #4CAF50; /* 蜀绣绿 */
}

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

.work {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #c4bfbe;
}

.row {
  width: 100%;
  display: flex;
}

.col {
  flex: 1;
  aspect-ratio: 1;
}

.img {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.img[data-origin="left"] {
  transform-origin: 0% 0%;
}

.img[data-origin="right"] {
  transform-origin: 100% 0%;
}