# -*- 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 = """<style>: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}</style>"""

def build(title, en, school, badge, core_html, catalog_url):
    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>{title} · 佐治亚理工学院 · 项目详情 | 美加硕士项目查询系统</title>
{CSS}
</head>
<body>
<div class="hero">
  <h1>{title}</h1>
  <div class="en">{en}</div>
  <div class="school">{school}</div>
  <div class="ranks"><div class="rank">Georgia Tech 2027 USNews<br><b>Top 30</b></div><div class="rank">STEM-designated<br><b>GaTech</b></div></div>
  <div class="badges"><span class='badge'>{badge}</span></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 页未列具体申请轮次日期；以研究生院/系申请门户为准（待补）。</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 要求（待补；以系站为准）。</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>
{core_html}
<div class="note">注：以上课程结构与学分为 GaTech 2026-2027 catalog 官网列出；录取分布，非最低门槛。</div>
</div>

<div class="card"><h2>官网链接</h2>
<div class="clinks">
<a href="{catalog_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>"""

pages = []

# 1. Aerospace Engineering MS
core1 = """<ul class="cl">
<li><b>学位结构</b>：Thesis / Non-Thesis 双选项；AE 系；毕业 GPA 要求 2.7。</li>
<li><b>Thesis Option（官网列出）</b>：<br>· AE 7000 Master's Thesis（9 学分）<br>· 系内/跨院批准选修</li>
<li><b>Non-Thesis Option（官网列出）</b>：<br>· 授课型课程（航空航天方向课 + 选修）</li>
<li><b>注意</b>：官网同时列出 Distance Learning（在线）版本；本条目仅收录在校全日制 MS，在线版本按口径排除。</li>
</ul>"""
pages.append(("details/gatech-aerospace-engineering-ms.html",
  build("航空航天工程硕士（MS Aerospace Engineering）",
        "Master of Science in Aerospace Engineering",
        "佐治亚理工学院 Georgia Institute of Technology · 航空航天工程系（AE）",
        "Thesis/Non-Thesis 双选 · 毕业 GPA 2.7 · 在校全日制（在线版排除）· STEM",
        core1,
        "https://catalog.gatech.edu/programs/aerospace-engineering-ms/")))

# 2. Materials Science & Engineering MS
core2 = """<ul class="cl">
<li><b>学位结构</b>：30 学分；Thesis / Non-Thesis 双选项；MSE 系。</li>
<li><b>核心课（官网列出）</b>：<br>· MSE 6010 Fundamentals of Functional Materials<br>· MSE 6105 Diffraction Studies<br>· MSE 6110 Transmission Electron Microscopy<br>· MSE 6120 Quantitative Characterization of Microstructures<br>· MSE 6130 Surface Analysis</li>
<li><b>方向课（官网列出，部分）</b>：<br>· MSE 6403 Kinetics of Phase Transformations<br>· MSE 6404 Scattering Theory<br>· MSE 6405 Advanced Nanomaterials<br>· MSE 6406 Corrosion of Materials<br>· MSE 6407 Biological Properties<br>· MSE 6774 Biomaterials: Structure and Function<br>· MSE 6777 Advanced Biomaterials<br>· MSE 6796 Structure-Property Relationships in Materials</li>
<li><b>跨系选修（官网列出）</b>：ME 6104 CAD / ME 6124 有限元 / ISYE 6739 统计方法 / BMED 6710 生物材料设计 / CHEM 6172 无机化学物理方法 / MATH 4347-4348 偏微分方程 I-II / MATH 4255 Monte Carlo</li>
<li><b>Thesis Option</b>：MSE 7000 Master's Thesis（6 学分）；须完成 Responsible Conduct of Research（CITI 在线）。</li>
<li><b>Non-Thesis Option</b>：授课型；可选 MSE 8903 Special Problems（1-21 学分）做研究体验；最多 6 学分 4000-level 课程可计入。</li>
</ul>"""
pages.append(("details/gatech-materials-science-engineering-ms.html",
  build("材料科学与工程硕士（MS Materials Science and Engineering）",
        "Master of Science in Materials Science and Engineering",
        "佐治亚理工学院 Georgia Institute of Technology · 材料科学与工程系（MSE）",
        "30 学分 · Thesis/Non-Thesis 双选 · 功能材料/纳米/生物材料方向 · STEM",
        core2,
        "https://catalog.gatech.edu/programs/materials-science-engineering-ms/")))

# 3. Physics MS
core3 = """<ul class="cl">
<li><b>学位结构</b>：Thesis / Non-Thesis 双选项；物理系；方向由 Physics Graduate Coordinator 批准。</li>
<li><b>核心课（官网列出）</b>：<br>· PHYS 6103 Electromagnetism（电磁学）<br>· PHYS 6105 Quantum Mechanics I（量子力学 I）<br>· PHYS 6106 Quantum Mechanics II（量子力学 II）<br>· PHYS 6107 Statistical Mechanics I（统计力学 I）</li>
<li><b>Thesis Option</b>：PHYS 7000 Master's Thesis（1-6 学分）。</li>
<li><b>Non-Thesis Option</b>：授课型；方向由 Graduate Coordinator 批准。</li>
<li><b>BS/MS Option（官网列出）</b>：GaTech 本校本科生可双算最多 6 学分本科/研究生课程——属本校加速通道，本条目仅收录对外 MS 通道。</li>
</ul>"""
pages.append(("details/gatech-physics-ms.html",
  build("物理学硕士（MS Physics）",
        "Master of Science in Physics",
        "佐治亚理工学院 Georgia Institute of Technology · 物理系（School of Physics）",
        "Thesis/Non-Thesis 双选 · 电磁/量子/统计力学核心 · STEM",
        core3,
        "https://catalog.gatech.edu/programs/physics-ms/")))

# 4. Public Policy MS
core4 = """<ul class="cl">
<li><b>学位结构</b>：Thesis Option 或 Non-thesis (Paper/Project) Option；Ivan Allen College of Liberal Arts · School of Public Policy；毕业 GPA 要求 2.7。</li>
<li><b>核心课（官网列出）</b>：<br>· PUBP 6001 Introduction to Public Policy（1cr）<br>· PUBP 6010 Ethics, Epistemology, and Public Policy（3cr）<br>· PUBP 6012 Fundamentals of Policy Processes（3cr）<br>· PUBP 6112 Research Design in Policy Science（3cr）<br>· PUBP 6114 Applied Policy Methods and Data Analysis（3cr）<br>· PUBP 6116 Microeconomics for Policy Analysis（3cr）<br>· PUBP 6118 Public Finance Policy（3cr）<br>· PUBP 6201 Public Policy Analysis（3cr）</li>
<li><b>Thesis Option（官网列出）</b>：Concentration（导师批准，12cr）+ Thesis Hours（9cr）。</li>
<li><b>Non-thesis (Paper/Project) Option（官网列出）</b>：Concentration（导师批准，18cr）+ PUBP 6801 Research Paper（3cr）。</li>
<li><b>双学位通道（官网列出）</b>：MCRP/MSPUBP Option（城市区域规划与公共政策双硕士）；BS in Business Administration + Ivan Allen Master's 本校 BS/MS Option。</li>
</ul>"""
pages.append(("details/gatech-public-policy-ms.html",
  build("公共政策硕士（MS Public Policy）",
        "Master of Science in Public Policy",
        "佐治亚理工学院 Georgia Institute of Technology · Ivan Allen 公共政策学院（School of Public Policy）",
        "Thesis/Paper-Project 双选 · 政策方法/微观经济/公共财政核心 · 毕业 GPA 2.7",
        core4,
        "https://catalog.gatech.edu/programs/public-policy-ms/")))

# 5. HCI MS (覆盖 CATD 占位)
core5 = """<ul class="cl">
<li><b>学位结构</b>：跨学院项目（College of Computing · Ivan Allen College · College of Design · 心理学/音乐/管理/航空等系联合）；GPA 要求 3.0，Fixed Core / Specialization / Project 段最低 B。</li>
<li><b>Fixed Core（官网列出，部分）</b>：<br>· CS 6451 Introduction to Human-Centered Computing<br>· CS 6452 Prototyping Interactive Systems<br>· CS 6454 Qualitative Methods for Design of HCI<br>· LMC 6310 The Computer as an Expressive Medium<br>· ID 6101 Human Centered Design<br>· PSYC 6022 Psychological Statistics for HCI（4cr）</li>
<li><b>Specialization 方向选修（官网列出，部分）</b>：<br>· CS 6456 UI Software / CS 6457 游戏设计 / CS 6460 教育技术 / CS 6470 在线社区设计 / CS 6474 Social Computing / CS 6730 数据可视化 / CS 7450 信息可视化 / CS 7470 移动泛在计算 / CS 7633 人机交互机器人<br>· ID 6107 Integrated Product Design / ID 6212-6213 Grad Studio（健康/交互产品）/ ID 6510 交互设计 / ID 6830 可穿戴健康技术<br>· LMC 6313 交互设计原则 / LMC 6315 产品制作 / LMC 6325 游戏设计与分析<br>· PSYC 7101-7102 工程心理学 I-II / PSYC 6011 认知心理学 / MUSI 6001-6004 音乐技术 / MGT 6450 项目管理 / PUBP 6401 科技与公共政策</li>
<li><b>Project（官网列出）</b>：跨系 Project Studio / Special Problems（CS 8903 / ID 8903 / PSYC 8903）。</li>
<li><b>合作院系</b>：CS、LMC（文学媒体传播）、ID（工业设计）、PSYC（心理学）、MGT（管理）、MUSI（音乐技术）、AE（航空）、ISYE（工业工程）、PUBP（公共政策）、INTA（国际事务）。</li>
</ul>"""
pages.append(("details/gatech-human-computer-interaction-ms.html",
  build("人机交互硕士（MS Human-Computer Interaction）",
        "Master of Science in Human-Computer Interaction",
        "佐治亚理工学院 Georgia Institute of Technology · 跨学院（Computing / Ivan Allen / Design / Psychology）",
        "跨学院 HCI · Fixed Core + Specialization + Project · GPA 3.0 · STEM",
        core5,
        "https://catalog.gatech.edu/programs/human-computer-interaction-ms/")))

for path, html in pages:
    with open(path, "w", encoding="utf-8") as f:
        f.write(html)
    print("WROTE", path, len(html))
