/* 厦门泰坦智算官网样式表 */

/* 全局CSS变量定义 */
:root {
  --primary: #3b82f6; /* 蓝色作为主色调 */
  --secondary: #10b981; /* 绿色作为辅助色 */
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 全局样式 */
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* 响应式基础设置 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 返回顶部按钮样式 */
#back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary, #3b82f6) !important;
    color: white !important;
    border: 2px solid #1d4ed8;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
    z-index: 50;
  }

#back-to-top:hover {
  background-color: var(--primary);
  opacity: 0.9;
}

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

.transition-custom {
  transition-property: opacity, visibility;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* 移动端菜单样式 */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu a,
  .navbar.scrolled #mobile-menu a {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #4B5563 !important;
  }

#mobile-menu a:last-child {
  border-bottom: none;
}

#menu-toggle {
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* 移动端适配 */
.navbar.scrolled {
  background: linear-gradient(to right, var(--primary)/95, var(--secondary)/95);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.navbar.scrolled .hidden.md\:flex a:not(.bg-primary) {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  #navbar {
    padding: 0.5rem 1rem;
  }

  #mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
}