泰格大脑 · 官网部署包（静态站点）
生成日期：2026-10-18

【包内容】
  index.html                    官网首页（方法论 / 解决方案 / 4+2 / 6+2 / 合作）
  jump-junior.html              中考冲刺 4+2 自适应模型（全国通用版）
  jump-senior.html              高考冲刺 6+2 自适应模型
  download.html                 部署包下载页（本包即由此页提供）
  word-structure-training.html  单词结构训练页
  assets/                       全部图片资源
  部署说明.txt                   本文件

【重要说明】
  纯静态站点，不需要任何运行时（无需 PHP / Node / 数据库），Nginx 直接托管即可。

────────────────────────────────────
一、上传（在本地电脑执行）

  scp tygerbrain-site-2026.zip root@服务器IP:/opt/tyger/

────────────────────────────────────
二、部署（在服务器上执行）

  mkdir -p /opt/tyger && cd /opt/tyger

  # 1) 先备份现有线上版本（强烈建议）
  [ -d tyger-site ] && cp -r tyger-site backup/tyger-site-$(date +%Y%m%d-%H%M)

  # 2) 解压到站点目录（CentOS 7 如无 unzip：yum install -y unzip）
  unzip -o tygerbrain-site-2026.zip -d /opt/tyger/tyger-site

  # 3) 修正属主（按实际运行 nginx 的用户）
  chown -R nginx:nginx /opt/tyger/tyger-site

  # 4) 校验并重载 Nginx
  nginx -t && nginx -s reload
  # 若以 systemd 管理：systemctl reload nginx

  静态文件即时生效，无需重启。

────────────────────────────────────
三、Nginx 站点配置示例

  server {
      listen       80;
      server_name  www.tygerbrain.com tygerbrain.com;
      root         /opt/tyger/tyger-site;
      index        index.html;

      location / {
          try_files $uri $uri/ =404;
      }
      location ~* \.(jpg|jpeg|png|gif|ico|svg|webp)$ {
          expires 30d;
      }
  }

────────────────────────────────────
四、上线验证

  # 首页为最新版（出现「合作沟通提纲」即新版）返回 1
  curl -s http://127.0.0.1/ | grep -c "合作沟通提纲"

  # 下载页与部署包可访问（返回 200 及字节数）
  curl -s -o /dev/null -w "%{http_code} %{size_download}\n" http://127.0.0.1/download/tygerbrain-site-2026.zip

  浏览器检查三件事：
  1. 导航含「下载」入口，且已无「跳级英语」专区
  2. 中考冲刺 4+2 / 高考冲刺 6+2 两个页面可正常打开
  3. 「教师培训 · 机构合作」区的沟通提纲弹窗可生成、可复制

────────────────────────────────────
五、CentOS 7 专属注意事项

  1) 安装依赖（最小化安装通常没有 unzip / nginx）
     yum install -y epel-release
     yum install -y nginx unzip

  2) 开机自启
     systemctl enable nginx && systemctl start nginx

  3) 放行 80 端口
     firewall-cmd --permanent --add-service=http
     firewall-cmd --reload

  4) 若页面 403 / 文件读不到（SELinux 未关的情况）
     # 查看状态：getenforce
     chcon -R -t httpd_sys_content_t /opt/tyger/tyger-site
     # 或临时关闭：setenforce 0（重启失效，生产环境请谨慎）

  5) 目录权限
     chmod -R 755 /opt/tyger/tyger-site
     chown -R nginx:nginx /opt/tyger/tyger-site

────────────────────────────────────
六、若 Nginx root 不在上述路径

  grep -r "root" /etc/nginx/nginx.conf /etc/nginx/conf.d/ | grep -v "#"

  把解压后的目录对准实际 root 所指路径，或调整 root 后 reload。

────────────────────────────────────
七、回滚

  cd /opt/tyger && rm -rf tyger-site && cp -r backup/tyger-site-备份时间戳 tyger-site && nginx -s reload
