/* 主要背景和全局样式 */
body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #e6f1ff;
  background-color: #050714;
  background-image: radial-gradient(circle at 50% 50%, rgba(28, 118, 210, 0.15) 0%, transparent 50%);
  position: relative;
  overflow-x: hidden;
}

/* 网格背景 */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 112, 243, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 112, 243, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  opacity: 0.4;
}

/* 浮动粒子样式 */
.floating-particle {
  position: absolute;
  background-color: rgba(0, 112, 243, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-30px) translateX(30px);
  }
  50% {
    transform: translateY(-60px) translateX(0);
  }
  75% {
    transform: translateY(-30px) translateX(-30px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  margin-top: 0;
  font-weight: 600;
}

/* 链接样式 */
a {
  color: #0070f3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00c6ff;
}

/* 按钮样式 */
button {
  background: linear-gradient(135deg, #0a1929, #102a42);
  border: 1px solid #1e4976;
  color: #e6f1ff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

button:hover {
  border-color: #0070f3;
  box-shadow: 0 0 15px rgba(0, 112, 243, 0.3);
}

/* 输入框样式 */
input {
  background: rgba(10, 25, 41, 0.6);
  border: 1px solid #1e4976;
  border-radius: 4px;
  color: #e6f1ff;
  padding: 0.5rem 1rem;
  width: 100%;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #0070f3;
  box-shadow: 0 0 15px rgba(0, 112, 243, 0.3);
}

/* 头部样式 */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(10, 25, 41, 0.4);
  border-bottom: 1px solid rgba(30, 73, 118, 0.3);
  margin-bottom: 2rem;
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff, #00c6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: title-glow 3s infinite alternate;
}

@keyframes title-glow {
  0% {
    text-shadow: 0 0 10px rgba(0, 112, 243, 0.3);
  }
  100% {
    text-shadow: 0 0 20px rgba(0, 112, 243, 0.6);
  }
}

.header-subtitle {
  font-size: 1.2rem;
  color: #a0aec0;
  max-width: 600px;
  margin: 0 auto;
}

/* 公司网格样式 */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* 字母分组样式 */
.letter-group {
  margin-bottom: 3rem;
}

.letter-heading {
  font-size: 1.5rem;
  color: #0070f3;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(30, 73, 118, 0.3);
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.loading-spinner {
  border: 4px solid rgba(30, 73, 118, 0.3);
  border-top: 4px solid #0070f3;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式样式 */
@media (max-width: 768px) {
  .company-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .header-title {
    font-size: 2rem;
  }
  
  .header-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .company-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 1rem;
  }
  
  .header-title {
    font-size: 1.75rem;
  }
}

/* 工业风格装饰元素 */
.industrial-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.industrial-line {
  position: absolute;
  background: linear-gradient(90deg, #0070f3, transparent);
}

.industrial-line.top-left {
  top: 20px;
  left: 0;
  width: 150px;
  height: 1px;
}

.industrial-line.top-right {
  top: 0;
  right: 20px;
  width: 1px;
  height: 150px;
  background: linear-gradient(180deg, #0070f3, transparent);
}

.industrial-line.bottom-left {
  bottom: 0;
  left: 20px;
  width: 1px;
  height: 150px;
  background: linear-gradient(0deg, #0070f3, transparent);
}

.industrial-line.bottom-right {
  bottom: 20px;
  right: 0;
  width: 150px;
  height: 1px;
  background: linear-gradient(-90deg, #0070f3, transparent);
}

.industrial-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 112, 243, 0.3);
}

.industrial-circle.top-left {
  top: 50px;
  left: 50px;
  width: 100px;
  height: 100px;
  animation: pulse 4s infinite;
}

.industrial-circle.bottom-right {
  bottom: 50px;
  right: 50px;
  width: 150px;
  height: 150px;
  animation: pulse 6s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.3; }
}

/* 技术感文本样式 */
.tech-text {
  color: #ffffff;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0070f3, #00c6ff);
}

/* 链接样式 */
a {
  color: #0070f3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00c6ff;
}

/* 容器样式 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 站点logo样式 */
.site-logo {
  width: 60px;
  height: 60px;
  margin-right: 1rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(0, 112, 243, 0.5));
}

.site-logo:hover {
  transform: scale(1.05);
}

/* 工业风格按钮 */
.industrial-button {
  background: linear-gradient(135deg, #0a1929, #102a42);
  border: 1px solid #1e4976;
  color: #e6f1ff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.industrial-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.6s;
  z-index: -1;
}

.industrial-button:hover {
  border-color: #0070f3;
  box-shadow: 0 0 15px rgba(0, 112, 243, 0.3);
}

.industrial-button:hover::before {
  left: 100%;
}

/* 工业数据面板 */
.data-panel {
  background: rgba(10, 25, 41, 0.85);
  border: 1px solid #1e4976;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.data-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0070f3, #00c6ff);
}

/* 工业风格分隔线 */
.industrial-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #1e4976, transparent);
  margin: 2rem 0;
  position: relative;
}

.industrial-divider::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #0070f3;
  border-radius: 50%;
  top: -4.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #0070f3;
}

/* 浮动粒子样式 */
.floating-particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(0, 112, 243, 0.6);
  box-shadow: 0 0 10px rgba(0, 112, 243, 0.8);
  pointer-events: none;
  z-index: 0;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-20px) translateX(10px);
  }
  50% {
    transform: translateY(0) translateX(20px);
  }
  75% {
    transform: translateY(20px) translateX(10px);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  .site-logo {
    width: 50px;
    height: 50px;
  }
}

/* 公司logo样式 */
.company-logo {
  width: 200px;
  height: 100px;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 8px rgba(66, 153, 225, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.company-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.4) contrast(1.2) drop-shadow(0 0 12px rgba(66, 153, 225, 0.5));
}

/* 搜索输入框样式 */
.search-input {
  background-color: rgba(10, 15, 30, 0.6);
  border: 1px solid rgba(66, 153, 225, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(66, 153, 225, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  border-color: #4299e1;
  box-shadow: 0 0 20px rgba(66, 153, 225, 0.4);
  outline: none;
}

/* 网站logo样式 */
.site-logo {
  width: 64px;
  height: 64px;
  margin-right: 20px;
  filter: drop-shadow(0 0 10px rgba(66, 153, 225, 0.5));
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { filter: drop-shadow(0 0 10px rgba(66, 153, 225, 0.5)); }
  50% { filter: drop-shadow(0 0 20px rgba(66, 153, 225, 0.8)); }
  100% { filter: drop-shadow(0 0 10px rgba(66, 153, 225, 0.5)); }
}

/* 技术文本样式 */
.tech-text {
  background: linear-gradient(120deg, #4299e1, #667eea, #9f7aea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(66, 153, 225, 0.3);
}

/* 发光效果样式 */
@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(66, 153, 225, 0.2); }
  50% { box-shadow: 0 0 20px rgba(66, 153, 225, 0.4), 0 0 30px rgba(103, 58, 183, 0.2); }
  100% { box-shadow: 0 0 5px rgba(66, 153, 225, 0.2); }
}

.glow-effect {
  animation: glow 3s infinite;
  border: 1px solid rgba(66, 153, 225, 0.2);
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(66, 153, 225, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glow-effect:hover::after {
  opacity: 1;
}

/* 网格背景样式 */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(66, 153, 225, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 153, 225, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

/* 浮动粒子样式 */
.floating-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(66, 153, 225, 0.5);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
}

/* 霓虹按钮样式 */
.neon-button {
  position: relative;
  background: rgba(10, 15, 30, 0.6);
  color: #4299e1;
  border: 1px solid rgba(66, 153, 225, 0.5);
  border-radius: 4px;
  padding: 8px 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.neon-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

.neon-button:hover {
  color: white;
  box-shadow: 0 0 15px rgba(66, 153, 225, 0.5);
}

.neon-button:hover::before {
  transform: translateX(100%);
}

/* 语言选择器样式 */
.language-selector {
  display: flex;
  gap: 5px;
  background: rgba(10, 25, 41, 0.7);
  padding: 5px;
  border-radius: 8px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(66, 153, 225, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.language-btn {
  background: transparent;
  color: #e6f1ff;
  border: 1px solid rgba(66, 153, 225, 0.3);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-btn:hover {
  background: rgba(66, 153, 225, 0.2);
  border-color: rgba(66, 153, 225, 0.5);
}

.language-btn.active {
  background: rgba(66, 153, 225, 0.3);
  border-color: rgba(66, 153, 225, 0.8);
  box-shadow: 0 0 8px rgba(66, 153, 225, 0.4);
}

@media (max-width: 768px) {
  .language-selector {
    padding: 3px;
    gap: 2px;
  }
  
  .language-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
}
