# -*- coding: utf-8 -*-
import io, sys, os
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")

CSS = """:root{--navy1:#0b2447;--navy2:#19376d;--navy3:#2b5ba8;--gold:#f0a500;--bg:#f5f7fa;--card:#fff;--line:#e3e8f0;--text:#1f2937;--muted:#6b7280;--green:#1e8449;--blue:#2563eb}
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;background:var(--bg);color:var(--text);font-size:14px}
a{color:var(--blue)}
.hero{background:linear-gradient(135deg,var(--navy1) 0%,var(--navy2) 55%,var(--navy3) 100%);color:#fff;padding:24px 30px 20px}
.hero h1{font-size:21px}
.hero .en{font-size:13px;opacity:.85;margin-top:4px}
.hero .school{margin-top:8px;font-size:14px;font-weight:600;color:#ffd77a}
.badges{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.badge{font-size:12px;border-radius:5px;padding:3px 10px;font-weight:700;background:rgba(240,165,0,.25);color:#ffe1a1}
.wrap{max-width:900px;margin:20px auto 60px;padding:0 16px}
.card{background:var(--card);border-radius:12px;box-shadow:0 2px 10px rgba(15,35,80,.08);border:1px solid var(--line);padding:20px 24px;margin-bottom:16px}
.card h2{font-size:16px;color:var(--navy2);border-left:4px solid var(--gold);padding-left:10px;margin-bottom:14px}
table.kv{width:100%;border-collapse:collapse;font-size:13px}
table.kv td{border:1px solid var(--line);padding:10px 12px;vertical-align:top}
table.kv td.k{width:130px;background:#f0f4fa;color:var(--muted);font-weight:600;white-space:nowrap}
table.kv td.v{line-height:1.8}
ul.cl{padding-left:20px;line-height:1.95;font-size:13px}
ul.cl li{margin-bottom:9px}
ul.cl li b{color:var(--navy2)}
.note{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.7}
.clinks{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line);display:flex;gap:8px;flex-wrap:wrap}
.clinks a{font-size:12px;padding:6px 12px;background:#eef3fb;color:var(--navy2);border:1px solid #cfdcef;border-radius:7px;text-decoration:none;font-weight:600}
.links a{display:inline-block;margin:4px 8px 4px 0;padding:8px 14px;background:var(--navy2);color:#fff;border-radius:8px;font-size:13px;text-decoration:none;font-weight:600}
.foot{max-width:900px;margin:0 auto 40px;padding:0 16px}
.yellow{background:#fff8e1;border-left:4px solid var(--gold);border-radius:8px;padding:12px 16px;font-size:12px;line-height:1.8}
.back{display:inline-block;margin-bottom:14px;color:var(--navy2);text-decoration:none;font-size:13px;font-weight:600}"""

html = """<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>生物统计学硕士（MS） · 纽约大学 NYU · 项目详情 | 美加硕士项目查询系统</title>
<style>__CSS__</style></head>
<body>
<div class="hero">
  <h1>生物统计学硕士（MS）</h1>
  <div class="en">Master of Science in Biostatistics</div>
  <div class="school">纽约大学 NYU · 全球公共卫生学院（GPH）</div>
  <div class="badges"><span class="badge">在校硕士 · 半核验 · 生物统计/公共卫生</span></div>
</div>
<div class="wrap">
  <a class="back" href="../index_main.html">← 返回项目库</a>
<div class="card"><h2>申请要求（2027 申请季 · 官网口径）</h2><table class="kv">
<tr><td class="k">申请截止</td><td class="v">bulletin 未列具体截止日期；待补。</td></tr>
<tr><td class="k">语言要求</td><td class="v">TOEFL iBT 或 IELTS Academic（母语非英语且未在英语授课国家获得本科学位者须提交）；具体最低分待补。</td></tr>
<tr><td class="k">标化要求</td><td class="v">GRE：bulletin 未列要求，按 notreq 处理（待终检复核）。</td></tr>
<tr><td class="k">学术背景</td><td class="v">通过 SOPHAS 申请；官方成绩单；三封推荐信；个人陈述；简历/CV。具体 GPA 门槛 bulletin 未列，待补。</td></tr>
<tr><td class="k">申请材料</td><td class="v">SOPHAS 申请表（选一个研究方向）；本科成绩单；三封推荐信；个人陈述；简历；英语能力考试成绩。</td></tr>
</table></div>
<div class="card"><h2>费用（学费 + 奖学金 · 官网口径）</h2><table class="kv"><tr><td class="k">学费与奖学金</td><td class="v">bulletin 未列打包学费；待补。</td></tr></table></div>
<div class="card"><h2>课程设置（官网口径）</h2><ul class="cl">
<li><b>核心课程</b>：流行病学（GPH-GU 2106，3 学分）；公共卫生生物统计（GPH-GU 2995，3 学分）；回归 I：线性回归与建模（GPH-GU 2353，3 学分）；回归 II：分类数据分析（GPH-GU 2354，3 学分）；公共卫生研究方法（GPH-GU 2361/5361，3 学分）；中级流行病学（GPH-GU 2450，3 学分）；公共卫生导论（GPH-GU 5170，0 学分）。</li>
<li><b>选修</b>：数据管理与统计计算导论（GPH-GU 2286，3 学分）等。</li>
<li><b>培养方向</b>：生物统计方法、研究设计、数据分析、统计推理；为医学与公共卫生研究提供统计方法训练。</li>
<li><b>学制</b>：Full-Time Plan of Study（bulletin 列全日制计划）；part-time 口径待终检复核。</li>
</ul><div class="clinks"><a href="https://bulletins.nyu.edu/graduate/global-public-health/programs/biostatistics-ms/" target="_blank">📘 NYU Bulletin 官方项目页 ↗</a></div></div>
<div class="card"><h2>培养方案与项目要点（官网口径）</h2><div class="ptext" style="font-size:13px;line-height:1.9">在校全日制硕士；训练学生在数据管理、统计推理、医学与公共卫生研究中的统计推断与沟通能力。STEM 口径：CIP 26.1102（Biostatistics），但 bulletin 未明示 STEM OPT Extension 认证，保守记 stem:0。录取分数为分布参考、非最低门槛。截止日期/最低语言分/打包学费 bulletin 未完整公布，标注待补、不臆造。</div></div>
<div class="card"><h2>毕业走向 · 就业率 · 薪资（官网披露）</h2><table class="kv"><tr><td class="k">毕业走向（官网披露）</td><td class="v">毕业生进入公共卫生机构/医院研究/制药行业统计/政府卫生部门/学术研究；具体就业率/薪资 bulletin 未披露，留空不估算。</td></tr></table></div>
<div class="card"><h2>院校与城市速览（编辑整理，供沟通参考）</h2><table class="kv"><tr><td class="k">📍 城市</td><td class="v">美国 · 纽约市（New York, NY）曼哈顿校区。</td></tr><tr><td class="k">💰 薪资口径</td><td class="v">上方就业/薪资为官网自愿调查或项目披露口径，录取分数与薪资均为分布参考、非最低门槛、非保证起薪；具体随方向与个人背景浮动。</td></tr></table><div class="note">ℹ️ 本卡为编辑整理内容，便于接待沟通；上方各卡为官网数据。</div></div>
<div class="card links"><h2>官方链接</h2><a href="https://bulletins.nyu.edu/graduate/global-public-health/programs/biostatistics-ms/" target="_blank">🔗 NYU Bulletin 官方项目页</a></div>
</div>
<div class="foot">
  <div class="yellow">📋 数据说明：本页内容摘自纽约大学 GPH Bulletin（抓取日期 2026-11-20，对应 2027 申请季）。官网未公布的字段整项不展示，不做估算填充；录取分数与薪资为分布参考，非最低门槛。半核验页标注「待补」的字段须待 GPH 招生页可达后回填。part-time 口径待终检复核。</div>
</div>
</body>
</html>"""

html = html.replace("__CSS__", CSS)
with open("details/nyu-c568b0a.html","w",encoding="utf-8") as f:
    f.write(html)
print("WROTE details/nyu-c568b0a.html", len(html))
