*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
}

/* 测试专用 */
.b {
  border: red solid 3px;
  /* border: 1px dashed #999;  */
}

/* 以上為全局設置 */
.center {
  width: 50%;
  margin: 0 auto;
}

.privacy{
  font-size: 10px;
  font-style: red;
}


@media (max-width: 768px) , (hover:none) , (pointer:coarse) {
  .center {
    width: 70%;
    margin: 0 auto;
  }
}





/* 弹窗专用 */
  /* 右下角悬浮按钮 */
    .download-trigger {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background-color: #007bff;
      color: white;
      padding: 12px 18px;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
      transition: background 0.3s;
      z-index: 1000;
    }
    .download-trigger:hover {
      background-color: #0056b3;
    }

    /* 右下角浮窗（非全高） */
    .download-panel {
      position: fixed;
      bottom: 24px;
      right: -320px; /* 初始隐藏 */
      width: 300px;
      height: 45vh; /* 只占屏幕高度的45% */
      background-color: #fff;
      box-shadow: -2px 0 10px rgba(0,0,0,0.15);
      border-radius: 12px 0 0 12px;
      transition: right 0.4s ease;
      z-index: 999;
      display: flex;
      flex-direction: column;
      padding: 20px;
      overflow-y: auto;
    }

    .download-panel.active {
      right: 0;
    }

    .panel-header {
      font-weight: bold;
      font-size: 18px;
      margin-bottom: 12px;
      border-bottom: 1px solid #ddd;
      padding-bottom: 8px;
      text-align: left;
    }

    .file-item {
      display: flex;
      align-items: center;
      margin: 10px 0;
      cursor: pointer;
      padding: 8px;
      border-radius: 6px;
      transition: background 0.3s;
    }

    .file-item:hover {
      background-color: #f0f4ff;
    }

    .file-icon {
      width: 32px;
      height: 32px;
      margin-right: 10px;
    }

    .file-desc {
      flex: 1;
    }

    .file-desc h4 {
      margin: 0;
      font-size: 14px;
      color: #333;
    }

    .file-desc p {
      margin: 4px 0 0;
      font-size: 12px;
      color: #777;
    }

    /* @media (max-width: 600px) {
      .download-panel {
        width: 85vw;
        height: 50vh;
        right: -85vw;
      }
      .download-panel.active {
        right: 0;
      }
    } */

    @media (max-width: 768px) , (hover:none) , (pointer:coarse) {
      .download-panel {
        width: 85vw;
        height: 50vh;
        right: -85vw;
      }
      .download-panel.active {
        right: 0;
      }
    }
















/* 置顶 */
.center-top {
  z-index: 0;
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/8;
  /* 可以根据大图比例调整 */
  background-image: url('../images/desktop.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* 手机端图片切换 */
@media (max-width: 768px) , (hover:none) , (pointer:coarse) {
  .hero {
    aspect-ratio: 9/9;
    background-image: url('../images/desktop.jpg');
  }

  .overlay {
    display: none;
  }
}

/* 灰色蒙版 */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* 左上右上 */
.top-left,
.top-right {
  position: absolute;
  width: 15%;
}

.top-left {
  top: 3%;
  left: 3%;
}

.top-right {
  top: 3%;
  right: 3%;
}


.center-images {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 80%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-images img {
  width: 50%;
}

.center-images>.center-top {
  max-width: 14%;
  margin-top: -2%;
}


.center-images>.center-bottom {
  max-width: 28%;
  margin-top: 0%;
}



.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* opacity: 0.2; */
  width: 100%;
  pointer-events: none;
}

@media (max-width: 768px) , (hover:none) , (pointer:coarse) {

  .center-images>.center-top {
    max-width: 25%;
    margin-top: 3%;
 
  }
  
  .watermark{
    margin-top: -2%;
    margin-left: -1%;
  }


  .center-images>.center-bottom {
    max-width: 40%;
    
  }

}
































/* Story section */
.story-section {
  width: 100%;
  padding: 60px 0px 0px 0px;
  padding-left: 3%;
  padding-right: 3%;
  background: transparent;
  /* 可按需改为浅色背景 */
}

.story-inner {
  max-width: 900px;
  /* 控制阅读宽度 */
  margin: 0 auto;
  box-sizing: border-box;
}

.story-title {
  font-weight: 700;
  /* 加粗 */
  font-size: 1.25rem;
  /* h5 典型大小，可调整 */
  margin: 0 0 22px 0;
  letter-spacing: 0.4px;
}

/* 段落区域：整体居中但文字左对齐 */
.story-content {
  text-align: left;
}

.story-content p {
  margin: 0 0 8px 0;
  line-height: 1.7;
  color: #222;
  font-size: 1rem;
}

.story-content p {
  word-wrap: break-word;
  /* 老属性，保证长单词可被拆 */
  overflow-wrap: break-word;
  /* 新标准写法，更推荐 */
  hyphens: auto;
  /* 自动加连字符（英文专用） */
  text-align: justify;
  /* 两端对齐，让空白平均分布 */
}

/* 小屏适配：缩小间距与字体 */
@media (max-width: 768px) , (hover:none) , (pointer:coarse){
  .story-section {
    padding: 40px 12px;
    padding-left: 10%;
    padding-right: 10%;
    /* border: 1px dashed #999; */
  }

  .story-title {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  .story-content p {
    font-size: 0.95rem;
    margin-bottom: 14px;
  }
}






















/* 输入框样式 */
.contact-section {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  background-color: #fff;
}


#contactForm {
  display: flex;
  /* display: grid;
  grid-template-columns: 1fr 1fr; */
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: -5%;
  box-sizing: border-box;
}

/* 父容器清除浮动 */
#contactForm::after {
  content: "";
  display: block;
  clear: both;
}


/* 左侧四个输入框垂直排列 */
.form-left {
  flex: 0 0 48%;
  min-width: 200px;
  /* display: flex; */
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  box-sizing: border-box;
}

/* 左侧输入框区 */
.form-left {
  float: left;
  width: 48%;
  box-sizing: border-box;
  padding: 10px;
}

.form-left label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-left input,
.form-left select {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}



/* 右侧大文本框区域 */
.form-right {
  flex: 0 0 48%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  /* justify-content: flex-start;  */
  /* align-items: flex-start;      */
  align-items: stretch;
  box-sizing: border-box;
  margin-top: 10px;
  /* padding-bottom: 1000px; */
}

.form-right {
  /* float: right; */
  padding: 10px;
}

/* 右侧textarea样式，让它自动撑满右半块 */
.form-right textarea {
  width: 100%;
  height: 100%;
  min-height: 340px;
  resize: vertical;
  box-sizing: border-box;
}

.form-right textarea {
  padding: 10px;
  border-radius: 5px;
}



/* 输入框统一尺寸 */
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* 保证右侧留言框与左边等高 */
textarea {
  flex-grow: 1;
  resize: none;
  height: 100%;
  min-height: 240px;
}

/* 标签与必填星号 */
label {
  margin-bottom: 6px;
  font-weight: 500;
}

.required {
  color: red;
  margin-left: 4px;
}

/* 按钮区域 */
.submit-btn {
  display: block;
  clear: both;
  margin: 20px auto 0 auto;
  background-color: #000;
  color: #fff;
  padding: 20px 100px;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #444;
  transform: scale(1.05);
  cursor: pointer;
}





/* loading动画 */
.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

.hidden {
  display: none;
}

/* 居中限制宽度 + 响应式 */
@media (max-width: 768px) , (hover:none) , (pointer:coarse) {
  .center {
    width: 90%;
  }

  #contactForm {
    flex-direction: column;
    width: 90%;
    margin-top: -20%;
  }

  .form-left,
  .form-right {
    width: 100%;
  }

  textarea {
    min-height: 200px;
  }

  .submit-btn {
    width: 60%;
    padding: 12px 0;
  }
}

/* loading旋转动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* 输入框聚焦时发光边框 + 阴影 */
input:focus,
select:focus,
textarea:focus {
  border-color: #ff8c00;
  /* 橙色品牌强调色 */
  box-shadow: 0 0 6px rgba(255, 140, 0, 0.4);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* placeholder颜色略淡，更显层次 */
input::placeholder,
textarea::placeholder {
  color: #aaa;
}

/* 提交按钮悬浮更有“点击感” */
.submit-btn:hover {
  background-color: #ff8c00;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

/* 点击后轻微压下效果 */
.submit-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}


























/* ====== Footer ====== */
.social-footer {
  /* background: linear-gradient(180deg, #111 0%, #000 100%); */
  color: #fff;
  text-align: center;
  padding: 40px 0 25px;
  position: relative;
  overflow: hidden;
}

/* 顶部渐变亮线 */
.footer-top-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  /* background: linear-gradient(90deg, #ff4e00, #ec9f05, #ff4e00); */
  animation: shine 6s linear infinite;
}

/* 亮线流动动画 */
@keyframes shine {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/* 社交图标布局 */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 20px;
  z-index: 2;
  position: relative;
}

/* 图标样式与hover动画 */
.social-icons a img {
  width: 38px;
  height: 38px;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.social-icons a:hover img {
  transform: scale(1.15);
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255, 180, 0, 0.8));
}

/* 页脚文字 */
.footer-text {
  font-size: 0.95rem;
  color: #ccc;
  letter-spacing: 0.5px;
  margin: 0;
}

/* 手机端适配 */
@media (max-width: 768px) , (hover:none) , (pointer:coarse) {
  .social-footer {
    padding: 25px 10px 15px;
  }

  .social-icons {
    gap: 18px;
  }

  .social-icons a img {
    width: 34px;
    height: 34px;
  }
}




.soft-line {
  border: none;
  height: 1px;
  width: 75%;               /* 控制占屏幕宽度 */
  background: rgba(0, 0, 0, 0.1);  /* 淡灰色，可根据主题换 */
  margin: 20px auto;        /* 居中并留空隙 */
  border-radius: 1px;
}




/* 弹窗样式 */
.custom-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 24px 36px;
  border-radius: 12px;
  font-size: 16px;
  text-align: center;
  max-width: 420px;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -46%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -54%);
  }
}
















/* 按钮小字 */
.submit-section {
    text-align: left; /* 整体左对齐 */
    max-width: 400px;
    margin: 20px auto;
    
    font-family: Arial, sans-serif;
}

/* 勾选框和主文字在一行 */
.field.privacy .inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.field.privacy .inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.field.privacy .inline label {
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
}

/* 下方小文字淡化 */
.field.privacy .privacy-sub {
    font-size: 10px;
    color: #666;
    margin-left: 24px; /* 对齐勾选框 */
    margin-top: 4px;
    text-align: left;
}

/* 错误提示，默认隐藏 */
.field.privacy .error {
    font-size: 12px;
    color: red;
    margin-left: 24px;
    margin-top: 4px;
    display: none;
}

.field.privacy .error.active {
    display: block;
}

/* 提交按钮样式 */
/* .submit-btn {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
} */

.loader {
    display: inline-block;
}

.hidden {
    display: none;
}
