/* ----- 全局重置 ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Microsoft YaHei", sans-serif;
  background: #f5f1e8;
  color: #171717;
  overflow-x: hidden;
}

/* ----- 鼠标光晕 ----- */
.cursor {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 180, 120, .35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 5;
}

/* ----- 导航栏 ----- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  background: rgba(245, 241, 232, .65);
  backdrop-filter: blur(20px);
  z-index: 20;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.logo:hover {
  opacity: 0.7;
}

/* ----- 导航菜单容器（相对定位，用于滑块定位） ----- */
.menu {
  display: flex;
  position: relative;
  gap: 0;
}

.menu a {
  text-decoration: none;
  color: inherit;
  padding: 0 0 8px 0;
  margin-left: 35px;
  position: relative;
  z-index: 2;
}

.menu a:first-child {
  margin-left: 0;
}

.menu a span {
  font-size: 15px;
  color: #555;
  transition: color 0.3s;
  cursor: pointer;
}

.menu a:hover span {
  color: #b8860b;
}

/* ----- 滑块（滑动小条） ----- */
.menu .slider {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #b8860b;
  border-radius: 2px;
  transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
  pointer-events: none;
}

/* 激活状态：文字变金色 */
.menu a.active span {
  color: #b8860b;
  font-weight: 600;
}

/* ----- Hero 区域 ----- */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fabric-bg {
  position: absolute;
  inset: -100px;
  background:
    linear-gradient(rgba(255, 255, 255, .4), rgba(245, 241, 232, .8)),
    url("../img/pexels-alexeydemidov-9623003.jpg");
  background-size: cover;
  background-position: center;
  animation: fabricMove 15s infinite alternate;
}

@keyframes fabricMove {
  from { transform: scale(1); }
  to   { transform: scale(1.15) translate(-30px, -20px); }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 110px;
  line-height: 1;
  letter-spacing: -8px;
  font-weight: 600;
}

.hero p {
  font-size: 25px;
  margin-top: 40px;
  color: #666;
}

/* ----- 通用按钮 ----- */
.button {
  display: inline-block;
  margin-top: 50px;
  padding: 18px 55px;
  border-radius: 50px;
  background: #171717;
  color: white;
  text-decoration: none;
  transition: .4s;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}
.button:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* ----- 内容通用章节 ----- */
section.content {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 10%;
}

.content h2 {
  font-size: 85px;
  letter-spacing: -6px;
}

.content p {
  font-size: 25px;
  line-height: 2;
  color: #777;
  max-width: 900px;
  margin-top: 40px;
}

/* ----- 产品展示 ----- */
.product {
  height: 100vh;
  background: #171717;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
}

.fabric-card {
  width: 520px;
  height: 650px;
  border-radius: 40px;
  background: url("../img/pexels-kseniachernaya-5806970.jpg") center/cover;
  transform-style: preserve-3d;
  box-shadow: 0 50px 100px rgba(0, 0, 0, .4);
}

.product-text {
  width: 450px;
}
.product-text h2 {
  font-size: 70px;
}
.product-text p {
  font-size: 22px;
  line-height: 1.8;
  color: #aaa;
  margin-top: 30px;
}

/* ----- 工艺卡片 ----- */
.process {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 8%;
}
.process h2 {
  font-size: 80px;
}

.cards {
  display: flex;
  gap: 60px;
  margin-top: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .1);
  transition: .5s;
  text-align: center;
  padding: 20px;
}
.card:hover {
  transform: translateY(-25px);
}

/* ----- 联系 ----- */
.contact {
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 8%;
}
.contact h2 {
  font-size: 80px;
}
.contact p {
  font-size: 25px;
  color: #777;
  margin-top: 30px;
}

/* ===== 文字流光效果（黑色主调 + 阴影模糊） ===== */
h1, h2 {
  background-image: linear-gradient(120deg, #1a1a1a 0%, #3a3a3a 20%, #c9a84c 40%, #4a4a4a 60%, #1a1a1a 80%, #3a3a3a 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(0, 0, 0, 0.1);
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ----- 移动端响应 ----- */
@media (max-width: 900px) {
  .hero h1 { font-size: 55px; letter-spacing: -4px; }
  .menu a { margin-left: 18px; }
  .menu a span { font-size: 14px; }
  .logo { font-size: 18px; letter-spacing: 2px; }
  .product {
    flex-direction: column;
    height: auto;
    padding: 100px 5%;
    gap: 50px;
  }
  .fabric-card {
    width: 90%;
    max-width: 500px;
    height: 450px;
  }
  .product-text {
    width: 100%;
    max-width: 500px;
    text-align: center;
  }
  .product-text h2 { font-size: 50px; }
  .content h2,
  .contact h2,
  .process h2 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .content p {
    font-size: 20px;
  }
  .process {
    height: auto;
    padding: 80px 5%;
  }
  .cards {
    gap: 30px;
    margin-top: 50px;
  }
  .card {
    width: 180px;
    height: 180px;
    font-size: 20px;
  }
  .contact {
    height: auto;
    padding: 80px 5%;
  }
}

@media (max-width: 600px) {
  .menu a { display: none; }
  .logo { font-size: 16px; letter-spacing: 1px; }
  .hero h1 { font-size: 40px; letter-spacing: -2px; }
  .hero p { font-size: 18px; margin-top: 24px; }
  .button {
    padding: 14px 32px;
    font-size: 15px;
    margin-top: 30px;
  }
  .content {
    height: auto;
    padding: 80px 5%;
  }
  .content h2 { font-size: 32px; }
  .content p {
    font-size: 17px;
    margin-top: 24px;
  }
  .product-text h2 { font-size: 36px; }
  .product-text p {
    font-size: 17px;
    margin-top: 16px;
  }
  .fabric-card {
    height: 300px;
  }
  .product .button {
    margin-top: 20px;
    padding: 12px 28px;
    font-size: 14px;
  }
  .card {
    width: 140px;
    height: 140px;
    font-size: 17px;
  }
  .process h2 { font-size: 32px; }
  .contact h2 { font-size: 32px; }
  .contact p { font-size: 18px; }
}
/* ===== 语言切换按钮样式 ===== */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 30px;
    font-size: 14px;
}
.language-switcher .lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
}
.language-switcher .lang-btn:hover {
    color: #b8860b;
    background: rgba(184, 134, 11, 0.08);
}
.language-switcher .lang-btn.active {
    color: #b8860b;
    font-weight: 600;
    background: rgba(184, 134, 11, 0.1);
}
.language-switcher .lang-flag { font-size: 16px; }
.language-switcher .lang-name { font-size: 13px; }
.language-switcher .lang-divider { color: #ddd; }

/* 手机端适配：隐藏文字只显示国旗 */
@media (max-width: 768px) {
    .language-switcher { margin-left: 12px; }
    .language-switcher .lang-name { display: none; }
    .language-switcher .lang-flag { font-size: 18px; }
}
@media (max-width: 600px) {
    .language-switcher { margin-left: 8px; }
}