<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>柔灵科技 - FlectoThink</title>
<meta name="description" content="柔灵科技专注于非侵入式脑机接口技术研究及其在消费电子领域和医疗领域的应用。">
<link rel="icon" href="pc/images/favicon.ico">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  background: #000;
  color: #fff;
  font-family: "PingFang SC","Microsoft YaHei",Arial,sans-serif;
  display: flex; align-items: center; justify-content: center;
}
.lang-page {
  text-align: center;
  padding: 40px 20px;
}
.lang-page .logo {
  width: 240px; height: auto;
  margin-bottom: 48px;
}
.lang-page h1 {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  letter-spacing: 4px;
}
.lang-options {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px; height: 56px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 2px;
}
.lang-btn:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}
.lang-btn.active {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 20px rgba(255,255,255,0.08);
}
.lang-btn .sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
  letter-spacing: 1px;
}
.lang-btn .inner { line-height: 1.3; }
</style>
<script>
(function() {
  var ua = navigator.userAgent;
  var isMobile = /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i.test(ua);

  // 自动检测浏览器语言，自动跳转
  var lang = (navigator.language || navigator.userLanguage || '').toLowerCase();
  if (lang.indexOf('zh') === 0) {
    window.location.replace(isMobile ? 'mobile/mobile-ch/index.html' : 'pc/pc-ch/index.html');
  } else {
    window.location.replace('pc/pc-en/index.html');
  }

  // 手动切换（页面停留时仍可用）
  window.goChinese = function(el) {
    if (el) el.classList.add('active');
    setTimeout(function() {
      window.location.href = isMobile ? 'mobile/mobile-ch/index.html' : 'pc/pc-ch/index.html';
    }, 200);
  };
  window.goEnglish = function(el) {
    if (el) el.classList.add('active');
    setTimeout(function() {
      window.location.href = 'pc/pc-en/index.html';
    }, 200);
  };
})();
</script>
</head>
<body>
<div class="lang-page">
  <img class="logo" src="pc/images/logo_rouling.png@2x.png" alt="柔灵科技">
  <h1>FLECTOTHINK</h1>
  <div class="lang-options">
    <a class="lang-btn" href="javascript:;" onclick="goChinese(this)">
      <span class="inner">中文<span class="sub">Chinese</span></span>
    </a>
    <a class="lang-btn" href="javascript:;" onclick="goEnglish(this)">
      <span class="inner">English<span class="sub">英文</span></span>
    </a>
  </div>
</div>
</body>
</html>
