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

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f0f0f0;
  line-height: 1.6;
  background-color: #000000;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero 部分 - 3D动画区域 */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 20;
  background: rgba(0, 0, 0, 0.3);
  pointer-events: none; /* 允许点击穿透 */
}

.overlay h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.overlay p {
  font-size: 1.5rem;
  opacity: 0;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

/* 品牌Logo样式 */
.brand-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

.brand-logo img {
  width: 500px;
  height: auto;
  margin-bottom: 1rem;
}

.brand-logo h2 {
  color: white;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.scroll-hint svg {
  fill: none;
  stroke: white;
  stroke-width: 2px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* 联系我们部分 - 新设计 (shadcn风格) */
#contact-section {
  padding: 5rem 0;
  background-color: #09090b;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.contact-logo {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-logo img {
  width: 150px;
  margin-bottom: 1.5rem;
}

.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
  color: #ffffff;
  position: relative;
}

.contact-info h3::after,
.contact-form h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background: #0080ff;
}

.contact-info p {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  color: #a1a1aa;
  font-size: 0.95rem;
}

.contact-info i {
  margin-right: 12px;
  color: #0080ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  flex: 2;
  min-width: 300px;
}

/* shadcn风格表单元素 */
.form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: transparent;
  color: #e4e4e7;
  font-size: 0.95rem;
  border: 1px solid #27272a;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0080ff;
  box-shadow: 0 0 0 1px rgba(0, 128, 255, 0.3);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #3f3f46;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* 镂空按钮设计 */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #0080ff;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0080ff, #00ccff);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(0, 128, 255, 0.3);
}

.btn-submit:hover::before {
  opacity: 0.15;
}

.btn-submit:active {
  transform: translateY(0);
}

/* 页脚样式 */
footer {
  background-color: #080808;
  color: #cccccc;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-logo p {
  max-width: 300px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links {
  flex: 1;
  min-width: 200px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #0080ff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .overlay h1 {
    font-size: 2.5rem;
  }

  .overlay p {
    font-size: 1.2rem;
  }

  .brand-logo img {
    width: 500px;
  }

  .brand-logo h2 {
    font-size: 1.7rem;
  }

  .language-switch {
    top: 20px;
    right: 20px;
    font-size: 12px;
  }

  .contact-content,
  .footer-content,
  .footer-bottom {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-links ul {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .overlay h1 {
    font-size: 2rem;
  }

  .overlay p {
    font-size: 1rem;
  }

  .brand-logo img {
    width: 400px;
  }

  .brand-logo h2 {
    font-size: 1.5rem;
  }

  .btn-submit {
    width: 100%;
  }
}

/* 图标样式 */
.icon-email:before {
  content: "✉";
  margin-right: 8px;
  font-size: 1.2em;
}

.icon-location:before {
  content: "📍";
  margin-right: 8px;
  font-size: 1.2em;
}

/* 表单焦点状态指示器 */
.form-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #0080ff, #00ccff);
  transition: width 0.3s ease;
}

/* 语言切换按钮 */
.language-switch {
  position: absolute;
  top: 30px;
  right: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: white;
  cursor: pointer;
}

.language-switch span {
  padding: 4px;
  transition: all 0.3s ease;
}

.language-switch .active {
  font-weight: bold;
  text-decoration: underline;
}

.language-switch .divider {
  margin: 0 5px;
}
