/* 寻厦记 - 主样式文件 */

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

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(to bottom, #F8FBFF, #FFFFFF);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.5);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--color-primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0066CC 0%, #4DA6FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.language-switcher {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.language-btn:hover {
  background: rgba(0, 102, 204, 0.05);
}

.chevron-icon {
  transition: transform 0.3s;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 160px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.language-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
}

.language-option:hover {
  background: rgba(0, 102, 204, 0.05);
}

.language-option.active {
  background: rgba(0, 102, 204, 0.1);
  color: var(--color-primary);
  font-weight: 500;
}

/* 主内容区域 */
.main-content {
  flex: 1;
  padding-top: 64px;
}

/* Hero 区域 */
.hero-section {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem;
}

/* 背景装饰 */
.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(80px);
  opacity: 0.7;
}

.blob-1 {
  top: 5%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: rgba(173, 216, 255, 0.6);
  animation: float 6s ease-in-out infinite;
}

.blob-2 {
  top: 20%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 200, 150, 0.6);
  animation: float 8s ease-in-out infinite;
  animation-delay: 2s;
}

.blob-3 {
  bottom: 15%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: rgba(220, 200, 255, 0.6);
  animation: float 7s ease-in-out infinite;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* 品牌区域 */
.brand-section {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out forwards;
}

.brand-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.brand-name {
  font-size: 3.75rem;
  font-weight: 700;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(135deg, #0066CC 0%, #FF8C42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 主标题 */
.hero-title-wrapper {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin: 0;
}

/* 副标题 */
.hero-subtitle-wrapper {
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0 0 0.5rem 0;
}

.highlight {
  color: var(--color-primary);
  font-weight: 600;
}

/* CTA 按钮 */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}

.btn-icon {
  margin-right: 8px;
}

/* 特色图标 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  opacity: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon-blue {
  background: rgba(0, 102, 204, 0.1);
  color: var(--color-primary);
}

.feature-icon-orange {
  background: rgba(255, 140, 66, 0.1);
  color: var(--color-secondary);
}

.feature-icon-purple {
  background: rgba(147, 51, 234, 0.1);
  color: rgb(147, 51, 234);
}

.feature-icon-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

.feature-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Footer */
.footer {
  background: #F9FAFB;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  padding: 0 1rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.footer-copyright p {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .brand-name {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-section {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .brand-name {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-cta,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .blob-1,
  .blob-2,
  .blob-3 {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 0.5rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .language-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .brand-name {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .features-grid {
    gap: 0.75rem;
  }
  
  .feature-icon {
    width: 48px;
    height: 48px;
  }
  
  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
}
