# -*- 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}
.ranks{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.rank{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:6px 14px;font-size:12px}
.rank b{color:#ffd77a;font-size:15px}
.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}
.foot{max-width:900px;margin:0 auto 40px;padding:0 16px}
.back{display:inline-block;margin-bottom:14px;color:var(--navy2);text-decoration:none;font-size:13px;font-weight:600}"""

def page(cn, en, dept, badges, courses, official_url, stem_note):
    return f"""<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{cn} · 佐治亚理工学院 · 项目详情 | 美加硕士项目查询系统</title>
<style>{CSS}</style>
</head>
<body>
<div class="hero">
  <h1>{cn}</h1>
  <div class="en">{en}</div>
  <div class="school">佐治亚理工学院 Georgia Institute of Technology · {dept}</div>
  <div class="ranks"><div class="rank">Georgia Tech 2027 USNews<br><b>Top 30</b></div><div class="rank">{stem_note}</div></div>
  <div class="badges">{badges}</div>
</div>
<div class="wrap">
  <a class="back" href="../index_main.html">← 返回项目库</a>

<div class="card"><h2>申请要求（2027 申请季 · 官网 catalog 口径）</h2><table class="kv">
<tr><td class="k">申请截止</td><td class="v">GaTech catalog 页未列具体申请轮次日期；以 ISyE 研究生院申请门户为准（待补）。</td></tr>
<tr><td class="k">语言要求</td><td class="v">母语非英语须提交 TOEFL iBT / IELTS Academic；catalog 页未列最低分（待补）。</td></tr>
<tr><td class="k">标化要求</td><td class="v">catalog 页未列 GRE 要求（待补；ISyE 近年多为 test-optional，以系站为准）。</td></tr>
<tr><td class="k">学术背景</td><td class="v">本科工程/数学/量化背景；录取分布，非最低门槛。</td></tr>
</table></div>

<div class="card"><h2>费用（学费 · 2026-27 官网口径）</h2><table class="kv">
<tr><td class="k">学费</td><td class="v">catalog 页未列打包学费；按 GaTech 研究生学分制计费（待补）。</td></tr>
<tr><td class="k">奖学金</td><td class="v">研究生院/系级 RA/TA 随录取评审考虑；具体金额 catalog 页未列（待补）。</td></tr>
</table></div>

<div class="card"><h2>课程设置（官网 catalog 课程代码逐门列出）</h2><ul class="cl">
{courses}
</ul>
<div class="note">注：以上课程代码与学分为 GaTech 2026-2027 catalog 官网列出；录取分布，非最低门槛。</div>
</div>

<div class="card"><h2>官网链接</h2>
<div class="clinks">
<a href="{official_url}" target="_blank">GaTech Catalog 官方项目页</a>
</div></div>
</div>
<div class="foot"><p style="font-size:12px;color:var(--muted)">数据来源：catalog.gatech.edu 2026-2027 Edition；截止/语言/GRE/学费未列字段以研究生院官网为准，本页不臆造。</p></div>
</body>
</html>"""

p1 = page(
  "运筹学硕士（MS Operations Research）",
  "Master of Science in Operations Research",
  "工业与系统工程学院（ISyE）",
  "<span class='badge'>30 学分 · 无论文选项 · Practicum Track · STEM</span>",
  "<li><b>学位结构</b>：30 学分，无论文（coursework-only）；Practicum Track。</li>"
  "<li><b>核心必修（官网列出）</b>："
  "<br>· ISYE 6650 概率模型及其应用（3cr）"
  "<br>· ISYE 6669 确定性优化（3cr）</li>"
  "<li><b>统计与数据科学选修（选 1，3cr）</b>：MATH 4261 数理统计 I / ISYE 6412 理论统计 等。</li>"
  "<li><b>技术选修与自由选修</b>：ISYE 6000 级课程；跨学科课程经导师同意可计为核心或技术选修。</li>",
  "https://catalog.gatech.edu/programs/operations-research-ms/",
  "STEM-designated<br><b>ISyE</b>"
)

p2 = page(
  "健康系统硕士（MS Health Systems）",
  "Master of Science in Health Systems",
  "工业与系统工程学院（ISyE）",
  "<span class='badge'>33 学分 · 无论文选项 · Predictive Health Track · STEM</span>",
  "<li><b>学位结构</b>：33 学分，无论文；跨 ISyE 与健康领域。</li>"
  "<li><b>核心必修（官网列出）</b>：HS 6000 医疗交付导论（3cr）。</li>"
  "<li><b>核心实践（选 1，3cr）</b>：HS 6400 健康系统实践 / ISYE 6320 运筹学与管理科学的公共影响应用。</li>"
  "<li><b>Predictive Health Track（选 6 门，18cr）</b>：HS 6000 / ISYE 6669 确定性优化 / ISYE 6650 概率模型 / ISYE 6644 仿真 / ISYE 6414 统计建模与回归 等。</li>",
  "https://catalog.gatech.edu/programs/health-systems-ms/",
  "STEM-designated<br><b>ISyE</b>"
)

p3 = page(
  "量化与计算金融硕士（MS Quantitative & Computational Finance）",
  "Master of Science in Quantitative and Computational Finance",
  "跨学院（ISyE / Mathematics / Scheller 商学院）",
  "<span class='badge'>36 学分 · 无论文 · Internship/Practicum Track · STEM</span>",
  "<li><b>学位结构</b>：36 学分，无论文；Internship/Practicum Track。</li>"
  "<li><b>核心必修（官网列出）</b>："
  "<br>· MGT 6078 基础金融与投资（3cr）"
  "<br>· MGT 6081 衍生品证券（3cr）"
  "<br>· MATH 6635 金融数值方法（3cr）"
  "<br>· ISYE/MATH 6759 金融随机过程（3cr）"
  "<br>· ISYE/MATH 6767 支持系统的设计与实现（3cr）"
  "<br>· ISYE/MGT 6769 固定收益（3cr）</li>"
  "<li><b>Capstone（3cr）</b>：ISYE/MATH/MGT 6785 量化与计算金融实践。</li>"
  "<li><b>自由选修（9cr）</b>：跨 ISyE/Math/MGT 选课。</li>",
  "https://catalog.gatech.edu/programs/quantitative-computational-finance-ms/",
  "STEM-designated<br><b>跨学院</b>"
)

p4 = page(
  "工业工程硕士（MS Industrial Engineering）",
  "Master of Science in Industrial Engineering",
  "工业与系统工程学院（ISyE）",
  "<span class='badge'>30 学分 · 无论文选项 · Practicum Track · STEM</span>",
  "<li><b>学位结构</b>：30 学分，无论文；Practicum Track。</li>"
  "<li><b>核心必修（官网列出）</b>："
  "<br>· ISYE 6201 制造系统（3cr）"
  "<br>· ISYE 6202 仓储系统（3cr）"
  "<br>· ISYE 6203 运输与供应链系统（3cr）</li>"
  "<li><b>Breadth（选 3 门，9cr）</b>：ISYE 6225 高级工程经济 / ISYE 6227 生产与库存控制 等。</li>"
  "<li><b>技术选修与自由选修</b>：ISYE 6000 级课程；跨学科课程经导师同意可计为核心或技术选修。</li>",
  "https://catalog.gatech.edu/programs/industrial-engineering-ms/",
  "STEM-designated<br><b>ISyE</b>"
)

p5 = page(
  "供应链工程硕士（MS Supply Chain Engineering）",
  "Master of Science in Supply Chain Engineering",
  "工业与系统工程学院（ISyE）",
  "<span class='badge'>30 学分 · Practicum Track · 含 Capstone · STEM</span>",
  "<li><b>学位结构</b>：30 学分；Practicum Track。</li>"
  "<li><b>Analytics 核心（官网列出）</b>："
  "<br>· ISYE 6333 供应链工程运筹学 I（3cr）"
  "<br>· ISYE 6334 供应链工程运筹学 II（3cr）</li>"
  "<li><b>Engineering 核心（官网列出）</b>："
  "<br>· ISYE 6335 供应链工程 I（3cr）"
  "<br>· ISYE 6336 供应链工程 II（3cr）</li>"
  "<li><b>Capstone（6cr）</b>：ISYE 6341 供应链工程 Capstone I / ISYE 6342 Capstone II。</li>"
  "<li><b>Seminar（3cr）</b>：ISYE 系列研讨课。</li>",
  "https://catalog.gatech.edu/programs/supply-chain-engineering-ms/",
  "STEM-designated<br><b>ISyE</b>"
)

pages = [
  ("details/gatech-operations-research-ms.html", p1),
  ("details/gatech-health-systems-ms.html", p2),
  ("details/gatech-quantitative-and-computational-finance-ms.html", p3),
  ("details/gatech-industrial-engineering-ms.html", p4),
  ("details/gatech-supply-chain-engineering-ms.html", p5),
]
for path, html in pages:
    open(path, "w", encoding="utf-8").write(html)
    print("WROTE", path, len(html))
