/* 全局样式 */
@font-face {
  font-family: "BaskervilleOldFace";
  src: url("Fronts/baskerville-old-face.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "RageItalic";
  src: url("Fronts/rage-italic.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Dubai";
  src: url("Fronts/Dubai-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: "BaskervilleOldFace", serif;
  color: #222;
}

a {
  text-decoration: none;
  color: #5a77a3;
}

a:hover {
  text-decoration: underline;
}

/* 顶部黑色提示栏 */
.top-bar {
  background: #000;
  color: white;
  text-align: center;
  font-family: "Dubai", serif;
  font-size: 14px;
  padding: 5px;
}

.top-bar a {
  color: #fff;
  font-weight: normal;
  text-decoration: underline;
}

/* Header */
.header {
  display: flex;
  justify-content: center;   /* 让中间内容居中 */
  align-items: center;
  padding: 15px 50px;
  position: relative;        /* 为右边 contact 定位做准备 */
  height: 110px;
}

/* Logo 区域（居中） */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo h1 {
  margin: 0;
  font-family: "BaskervilleOldFace", serif;
  font-size: 32px;
}

.logo p {
  margin: 0;
  margin-left: 40px;
  font-size: 14px;
  font-family: "RageItalic", cursive;
  font-style:italic;
}

/* Contact us 放在右边 */
.contact {
  position: absolute;   /* 绝对定位 */
  right: 50px;          /* 距离右边 50px */
  font-family: "BaskervilleOldFace", serif;
  font-size: 14px;
}


/* 导航栏 */
.navbar {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  border-bottom: 2px solid #d0d8e6;
  background: #fff;
}

.navbar a, .dropbtn {
  font-size: 18px;
  font-family: "BaskervilleOldFace", serif;
  color: #5a77a3;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* 下拉菜单容器 */
.dropdown {
  position: relative;
  display: inline-block;
}

/* 下拉内容 */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 6px;
  padding: 10px 0;
}

/* 下拉菜单里的链接 */
.dropdown-content a {
  color: #5a77a3;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f0f4f9;
}

/* 鼠标移到 Our Products 时显示下拉 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* 主体内容 */
.hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 30px 50px;
}

/* 左边文字部分：占 5/8 */
.hero-text {
  flex: 0 0 60%;
  max-width: 60%;
}

.hero-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  margin-left: 30px
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
  margin-left: 30px
}

.btn {
  background: #5a77a3;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 2px 4px 6px rgba(0,0,0,0.2);
  font-size: 16px;
  margin-left: 300px
}

.btn:hover {
  background: #46618a;
}

.hero-image {
  flex: 0 0 40%;
  max-width: 40%;
  text-align: right; /* 图片靠左对齐 */
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 📱 响应式：手机屏幕改为上下布局 */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .hero-image {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .hero-image {
    margin-top: 20px;
    text-align: center;
  }
}

/* 📱 响应式：手机屏幕改为上下布局 */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .hero-image {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .hero-image {
    margin-top: 20px;
    text-align: center;
  }
}

.quote {
  text-align: center;
  margin: 30px auto;
  max-width: 1000px;
  padding: 20px;
  position: relative;
}

.wave {
  width: 100%;
  height: 30px;
}

.wave path {
  stroke-dasharray: 200;       /* 定义虚线长度 */
  stroke-dashoffset: 200;      /* 初始偏移量 */
  animation: waveDraw 3s linear infinite;
}

@keyframes waveDraw {
  to {
    stroke-dashoffset: 0;     /* 动态绘制波浪线 */
  }
}

.quote-text {
  font-family: "BaskervilleOldFace", serif;
  font-size: 26px;
  line-height: 2.0;
  margin: 20px 0;
  font-style: italic;
  font-weight: bold;
}

.quote-author {
  font-family: "BaskervilleOldFace", serif;
  font-size: 26px;
  font-weight: bold;
}

/* Product Categories */
.products {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  margin: 10px auto;
  max-width: 1900px;
}

.product-card {
  position: relative;
  width: 420px;
  border-radius: 39px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* 按钮覆盖在图片上 */
.product-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(90, 119, 163, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: "BaskervilleOldFace", serif;
  font-size: 16px;
  text-decoration: none;
}

.product-btn:hover {
  background: rgba(70, 97, 138, 0.95);
}
