/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础字体设置 */
html {
  font-size: 16px; /* 基准字号 */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 头部导航样式 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: hwb(209 4% 79%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.logo-img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    width: 20px;
    height: 20px;
  }

  .logo span {
    font-size: 1rem;
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #ff8c00;
  font-weight: 600;
}

/* 主要内容区域样式 */
main {
  flex: 1;
  margin-top: 60px;
}

/* 首页样式 */
.home-page {
  background: #2c3e50;
}

.hero-wrapper {
  height: calc(100vh - 120px);
  background: url("assets/bg.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.hero-content p:nth-child(2) {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.hero-content p:last-child {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
}

/* 关于我们页面样式 */
.page-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.content-box {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.info-card {
  margin-bottom: 2rem;
}

.info-card:last-child {
  margin-bottom: 0;
}

.info-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.slogan {
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.company-intro p {
  margin-bottom: 1rem;
  text-align: justify;
}

.company-info {
  margin-top: 2rem;
  color: #666;
}

.company-info p {
  margin-bottom: 0.5rem;
}

/* 联系方式页面样式 */
.contact-banner {
  height: 300px;
  margin-top: -60px;
  background: url("assets/contact.png") center/cover no-repeat;
  position: relative;
}

.contact-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.contact-card {
  flex: 1;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.contact-item p {
  color: #333;
}

/* 页脚样式 */
footer {
  background: rgb(72, 77, 80);
  padding: 1rem 0;
  text-align: center;
  color: #ffffff;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  font-size: 0.9rem;
}

.beian-link {
  color: #ff8c00;
  text-decoration: none;
  transition: color 0.3s;
}

.beian-link:hover {
  color: #ffa500;
}

/* 动画效果 */
.animate-fade-in {
  animation: fadeIn 1s ease-in both;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 1s ease-in 0.6s both;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 1s ease-in 0.9s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  html {
    font-size: 14px; /* 平板尺寸 */
  }

  nav {
    padding: 0.8rem 1rem;
  }

  .logo-img {
    width: 1.5rem;
    height: 1.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  .order {
    padding: 0.8rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 12px; /* 手机尺寸 */
  }

  nav {
    padding: 0.6rem 0.8rem;
  }

  .logo-img {
    width: 1.2rem;
    height: 1.2rem;
  }

  nav ul {
    gap: 0.8rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 1.4rem;
  }
}

/* 超小屏幕适配 */
@media screen and (max-width: 320px) {
  html {
    font-size: 10px; /* 超小屏尺寸 */
  }
}

.products {
  min-height: calc(100vh - 60px);
  padding-top: 60px;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

@keyframes activityMove {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(0);
  }
}

.products .activity {
  width: 330px;
  height: 200px;
  border-radius: 10px;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  padding: 10px 20px;
  overflow: hidden;
  transform: translateX(100vw);
  margin-bottom: 40px;
}
.products .activity.act1 {
  animation: activityMove 0.5s linear forwards;
  background-image: url(./assets/p1.jpg);
}
.products .act2 {
  animation: activityMove 0.5s linear 0.2s forwards;
  background-image: url(./assets/p8.jpg);
}
.products .act3 {
  animation: activityMove 0.5s linear 0.3s forwards;
  background-image: url(./assets/p9.jpg);
}
.products .act4 {
  animation: activityMove 0.5s linear 0.3s forwards;
  background-image: url(./assets/p12.jpg);
}
.products .act5 {
  animation: activityMove 0.5s linear 0.4s forwards;
  background-image: url(./assets/p13.jpg);
}

.products .activity::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #07172594;
  position: absolute;
  border-radius: 10px;
  left: 0;
  top: 0;
}

.products .activity .content {
  width: 100%;
  color: #fff;
  left: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
  padding: 10px;
  transform: translateY(40px);
  transition: 0.5s;
  pointer-events: none;
  transition: transform 0.2s linear;
}

.products .activity:hover .content {
  background: rgba(0, 0, 0, 0.322);
  transform: translateY(0);
}

.products .activity .title {
  display: flex;
  justify-content: space-between;
}

.products .activity .price .pre {
  font-size: 12px;
}

.notice {
  margin-top: 20px;
}

.products .activity .price .num {
  color: #ffa500;
}

.products .activity .produce {
  line-height: 15px;
  font-size: 12px;
  margin-top: 10px;
  /* transform: translateY(50px); */
}

.notice .txt {
  font-size: 14px;
  text-indent: 30px;
}

.msg {
  margin-top: 20px;
}

.msg .msg_form {
  margin-top: 5px;
  margin-left: 30px;
}

.msg .msg_form .item_box {
  margin-top: 5px;
}

.msg .msg_form .inp {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #999;
  outline: none;
}

.msg .msg_form .tip {
  font-size: 12px;
  color: red;
  visibility: hidden;
}

.mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.61);
  display: none;
  z-index: 999;
}

.mask .pay_way .pay_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mask .pay_way {
  width: 500px;
  height: 200px;
  background: #fff;
  border-radius: 10px;
  margin: 0 auto;
  margin-top: 200px;
  padding: 10px 20px;
  position: relative;
}

.mask .pay_way .payways {
  margin: 10px 0 0 20px;
}

.mask .pay_way .payways .way {
  margin-top: 10px;
}

.mask .pay_way .btn {
  position: absolute;
  right: 20px;
  bottom: 10px;
  padding: 5px 20px;
  background: #fff;
  border: 1px solid #1e6cb9;
  border-radius: 5px;
  color: #1e6cb9;
  background: #e9f2fa;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.mask .pay_way .btn img {
  display: none;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  animation: rotate 2s linear infinite;
}

.pay_tip {
  position: fixed;
  display: flex;
  justify-content: center;
  z-index: 999;
  top: 80px;
  width: 100%;
  visibility: hidden;
}

.pay_tip p {
  text-align: center;
}

.pay_tip p span {
  background: rgba(243, 173, 173, 0.603);
  color: red;
  padding: 5px 20px;
  border-radius: 5px;
}
