# -*- coding: utf-8 -*-
"""r342：生成 8 条详情页 spec（数据全部来自本轮已抓取的官网页面，逐条附来源）。"""
import json, pathlib

BASE = pathlib.Path(r"D:\work buddy\2026-11-05-14-15-52")
OUT = BASE / "_r342_specs"
OUT.mkdir(exist_ok=True)
DATE = "2026-12-02"

CAT = "https://catalog.gatech.edu/programs/{slug}/"
BURSAR = "https://www.bursar.gatech.edu/Fall_2026"
COST = "https://grad.gatech.edu/cost-fees"
LANG = "https://catalog.gatech.edu/admissions/grad/english-language-proficiency/"
PROC = "https://catalog.gatech.edu/admissions/grad/process-requirements/"

LANGSRC = "https://catalog.gatech.edu/admissions/grad/english-language-proficiency/"

def gt_links(slug, extra=None):
    ls = [
        {"label": "项目页（GaTech Catalog 2026-2027）", "url": CAT.format(slug=slug)},
        {"label": "学费费率（Bursar Fall 2026）", "url": BURSAR},
        {"label": "研究生费用说明（Graduate Education）", "url": COST},
        {"label": "英语语言能力要求（Catalog）", "url": LANG},
        {"label": "研究生申请流程与材料（Catalog）", "url": PROC},
    ]
    if extra:
        ls = extra + ls
    return ls

GT_RANKS = [{"label": "2027 USNews 全美综合", "value": "Top 30"}]
GT_BADGES = ["STEM", "Atlanta 主校区", "2026-2027 Catalog"]

def lang_rows(src=LANGSRC):
    return [
        {"k": "语言（TOEFL iBT）",
         "v": "官网列 Overall ≥ 4.5，分项 Speaking ≥ 3.5 / Writing ≥ 4 / Listening ≥ 4 / Reading ≥ 4（页面以 TOEFL Essentials 口径列出，以官网原文为准）",
         "src": src},
        {"k": "语言（IELTS Academic）",
         "v": "Overall Band 7.0；Writing 5.5 / Speaking 6.5 / Listening 6.5 / Reading 6.5",
         "src": src},
        {"k": "豁免情形",
         "v": "在认可英语国家取得学位、或学位来自以英语为主要授课语言的院校（需 MOI 证明）；亦接受完成 USG 校内 ESL 项目",
         "src": src},
        {"k": "重要提示",
         "v": "达到 Institute 最低分不等于录取，部分研究生项目要求更高分数；语言能力是注册入学的必要条件",
         "src": src},
    ]

def gt_fee_rows(rate_note, r1, r2, r3):
    return [
        {"k": "学费（2026 秋季 · Atlanta 主校区）", "v": rate_note, "src": BURSAR},
        {"k": "本州居民（Resident）", "v": f"{r1}；按学期计，12 学分及以上为打包档", "src": BURSAR},
        {"k": "非居民 / 国际生（Non-Resident）", "v": f"{r2}", "src": BURSAR},
        {"k": "境外学生（Out-of-Country）", "v": f"{r3}", "src": BURSAR},
        {"k": "强制学生费", "v": "选课 4 学分及以上 $758/学期；少于 4 学分 $211/学期", "src": BURSAR},
        {"k": "缴费截止", "v": "2027 春季学期学费与杂费缴纳截止 2027-01-19 16:00（Bursar 官网首页公告）", "src": "https://www.bursar.gatech.edu/"},
        {"k": "生活成本", "v": "官网未披露统一口径，住宿与餐饮分别见 Housing / Dining Services 官方页", "src": COST},
        {"k": "健康保险", "v": "多数研究生为强制投保，费率与豁免条件见 Student Health Insurance Plan 官方页", "src": COST},
    ]

def city_card():
    return {"key": "city", "title": "院校与城市速览（官网公开信息）", "type": "kv", "rows": [
        {"k": "所在城市", "v": "美国佐治亚州亚特兰大（Atlanta, GA）", "src": "https://catalog.gatech.edu/"},
        {"k": "主校区", "v": "North Avenue 校区，邮编 30332", "src": "https://catalog.gatech.edu/"},
        {"k": "研究生教育办公室", "v": "Savant Building, Room 301, 631 Cherry St., NW, Atlanta, GA 30332-0321", "src": "https://grad.gatech.edu/cost-fees"},
        {"k": "学期制度", "v": "秋季 / 春季 / 夏季三学期制，学费按学期与学分计", "src": BURSAR},
    ]}

# ---------------- 1. MSCS ----------------
slug = "computer-science-ms"
cs = {
    "id": "gatech-cs-ms",
    "cn": "计算机科学理学硕士（MSCS · 30 学分 · 三选一毕业路径）",
    "en": "Master of Science in Computer Science (MSCS), School of Computer Science, College of Computing",
    "school": "佐治亚理工学院 Georgia Institute of Technology",
    "school_short": "佐治亚理工",
    "date": DATE,
    "ranks": GT_RANKS,
    "badges": ["STEM", "仅秋季入学", "11 个方向", "可选 thesis"],
    "cards": [
        {"key": "req", "rows": [
            {"k": "学位与学分", "v": "MS in Computer Science，30 学分；Course Option（30 学分课程）/ Project Option（21 学分课程 + 9 学分项目）/ Thesis Option（18 学分课程 + 12 学分论文）三选一", "src": CAT.format(slug=slug)},
            {"k": "申请轮次", "v": "仅秋季学期入学；官网原文「The application deadline is February 1」，并提示选拔可能在截止前开始，建议尽早提交", "src": CAT.format(slug=slug)},
            {"k": "标化考试", "v": "官网明确按 prior academic record、Graduate Record Examination（GRE）成绩、个人陈述、推荐信综合评估", "src": CAT.format(slug=slug)},
            {"k": "先修能力", "v": "须具备本科水平计算核心能力：系统、算法设计与分析、形式语言与自动机、数据库、网络与通信、计算机体系结构、人机交互；不足者需补修 remedial coursework", "src": CAT.format(slug=slug)},
            {"k": "GPA 与成绩", "v": "毕业 GPA ≥ 3.0；方向内核心课与选修课成绩须 B 及以上；C 以下不计入毕业学分；全部硕士课程须按字母等级计分", "src": CAT.format(slug=slug)},
            *lang_rows(),
        ]},
        {"key": "fee", "rows": gt_fee_rows(
            "采用 Graduate（Master & PhD Candidates）标准费率，非专业项目费率",
            "学费 $607/学分；12 学分及以上 $7,280/学期",
            "学费 $1,341/学分；12 学分及以上 $16,073/学期",
            "学费 $1,379/学分；12 学分及以上 $16,540/学期")},
        {"key": "course", "type": "ul", "items": [
            {"b": "课程路径", "text": "Course Option：30 学分全部为课程（其中 CS/CSE 至少 24 学分，且须为 6000-8000 级）；Project Option：21 学分课程 + CS 6999 硕士项目 9 学分；Thesis Option：18 学分课程 + 12 学分硕士论文（须提前经导师与 MSCS 协调人批准选题）"},
            {"b": "方向（须完整修满一个）", "text": "Computational Perception and Robotics、Computer Graphics、Computing Systems、High-Performance Computing、Human-Centered Computing、Human-Computer Interaction、Artificial Intelligence、Machine Learning、Modeling and Simulations、Scientific Computing、Social Computing、Visual Analytics"},
            {"b": "算法核心（示例）", "text": "CS 6515 Introduction to Graduate Algorithms（3）、CS 6520 Computational Complexity Theory、CS 6550 Design and Analysis of Algorithms、CS 7520 Approximation Algorithms、CS 7530 Randomized Algorithms、CSE 6140 Computational Science and Engineering Algorithms"},
            {"b": "AI / ML 方向", "text": "CS 6601 Artificial Intelligence、CS 7641 Machine Learning；感知与机器人方向含 CS 6476 Introduction to Computer Vision、CS 7630 Autonomous Robotics、CS 7644 Machine Learning for Robotics、CS 7649 Robot Intelligence: Planning"},
            {"b": "系统方向", "text": "CS 6210 Advanced Operating Systems、CS 6241 Design and Implementation of Compilers、CS 6250 Computer Networks、CS 6290 High-Performance Computer Architecture、CS 6400 Database Systems Concepts and Design、CS 6300 Software Development Process"},
            {"b": "安全与数据方向", "text": "CS 6035 Introduction to Information Security、CS 6238 Secure Computer Systems、CS 6262 Network Security、CS 6260 Applied Cryptography、CS 6220 Big Data Systems and Analytics、CS 6222 Machine Learning Systems"},
            {"b": "图形与可视化方向", "text": "CS 6491 Foundations of Computer Graphics、CS 6457 Video Game Design and Programming、CS 7496 Computer Animation、CS 6730 Data Visualization: Principles and Applications、CS 6475 Computational Photography"},
            {"b": "选课红线", "text": "4000 级课程或非 CS/CSE 学科代码课程合计最多 6 学分；CS/CSE 89xx Special Problems 最多 3 学分且须在计算学院内；CS/CSE 88xx Special Topics 不设上限；不得用同一门课同时满足两个学位"},
        ], "links": [{"label": "全部方向与课程表（Catalog）", "url": CAT.format(slug=slug)}]},
        {"key": "plan", "type": "ul", "items": [
            {"b": "培养定位", "text": "以课程深度与方向专精为主，允许以项目或论文形式做研究型训练；项目与论文路径须在开工前一学期取得导师与项目协调人批准"},
            {"b": "方向专精", "text": "每个方向给出核心课与选修课清单，方向内课程成绩须 B 以上，体现「宽基础 + 深方向」的课程设计"},
            {"b": "学术规范", "text": "本科 BSCS 必修课不得计入 MSCS；3000 级及以下课程不授研究生学分；CS 4140 以下课程不计研究生学分"},
            {"b": "在读形态", "text": "Atlanta 主校区全日制；同项目另设线上版本（OMSCS），两者招生与费率口径不同，本页仅覆盖在校全日制"},
            {"b": "申请材料", "text": "成绩单、GRE 成绩、个人陈述、推荐信；国际学生另需语言成绩，按 Institute 研究生申请流程提交"},
        ], "links": [{"label": "研究生申请流程（Catalog）", "url": PROC}]},
        {"key": "outcome", "type": "text", "text": "官网未披露本项目毕业生的就业率、起薪或雇主名单，本页不做估算、不引用第三方统计。", "note": "资料来源：Georgia Tech Catalog 2026-2027 项目页；如需就业数据请以学院 Career Center 当年公布为准。"},
        city_card(),
    ],
    "links": gt_links(slug),
}

# ---------------- 2. MS Analytics ----------------
slug = "analytics-ms"
an = {
    "id": "gatech-analytics-ms",
    "cn": "分析学理学硕士（MSA · 36 学分 · ISyE/CSE/Scheller 跨学院）",
    "en": "Master of Science in Analytics (MSA), interdisciplinary program of ISyE, College of Computing and Scheller College of Business",
    "school": "佐治亚理工学院 Georgia Institute of Technology",
    "school_short": "佐治亚理工",
    "date": DATE,
    "ranks": GT_RANKS,
    "badges": ["STEM", "36 学分", "跨三学院", "含 6 学分实践"],
    "cards": [
        {"key": "req", "rows": [
            {"k": "学位与学分", "v": "MS in Analytics，36 学分；含 6 学分 Applied Analytics Practicum（实践项目）", "src": CAT.format(slug=slug)},
            {"k": "学院归属", "v": "跨学院项目：H. Milton Stewart 工业与系统工程学院（ISyE）、计算学院（CSE）、Scheller 商学院（MGT）联合开设", "src": CAT.format(slug=slug)},
            {"k": "申请截止", "v": "官网 catalog 2026-2027 项目页未列具体轮次与截止日期（官网未披露），以项目官网 analytics.gatech.edu 当年公告为准", "src": CAT.format(slug=slug)},
            {"k": "先修与替代", "v": "官网注明：若在某一领域已有足够背景，可申请以额外选修学分替代对应的入门核心课（须经项目批准）", "src": CAT.format(slug=slug)},
            {"k": "BS/MS 通道", "v": "本校商科（GPA≥3.5，已修 MGT 4050 与 CS 1301/1315，完成 75 学分）、计算机（GPA≥3.5，已修 CS 2340 及两门 3000/4000 级 CS/CX 课）、工业工程（GPA≥3.5，已修 ISYE 4031、ISYE 3133、CS 4400）本科生可申请 BS/MS，最多共享 6 学分", "src": CAT.format(slug=slug)},
            *lang_rows(),
        ]},
        {"key": "fee", "rows": gt_fee_rows(
            "本项目按 Graduate Professional Program Rates · Master of Science in Analytics (MSANLT) 单列费率",
            "$1,259/学分；12 学分及以上 $15,118/学期",
            "$1,862/学分；12 学分及以上 $22,350/学期",
            "$1,917/学分；12 学分及以上 $22,999/学期")},
        {"key": "course", "type": "ul", "items": [
            {"b": "入门核心（9 学分）", "text": "CSE 6040 Computing for Data Analysis: Methods and Tools（3）；MGT 8803 Special Topics in Management（Introduction to Business for Analytics）3，可用 MGT 6201 Foundations of Business 或 MGT 6753 Principles of Management for Engineers 替代；ISYE 6501 Intro Analytics Modeling（3）"},
            {"b": "进阶核心（6 学分）", "text": "CSE 6242 Data and Visual Analytics（3）；MGT 6203 Data Analytics in Business（3）"},
            {"b": "统计与运筹", "text": "从项目批准清单中选 2 门统计课（6 学分）+ 1 门运筹课（3 学分）"},
            {"b": "选修（6-15 学分）", "text": "须满足 analytical tools、business analytics、computational data analytics 三条 track 中至少一条；方向涵盖预测、回归、数据挖掘、统计学习、机器学习、实验设计、仿真、优化、概率模型、可视化、数据库、文本挖掘、图分析、商业智能、定价与收益管理、风险分析等"},
            {"b": "实践项目（6 学分）", "text": "ISYE 6748 / CSE 6748 / MGT 6748 Applied Analytics Practicum 三选一，团队形式对接真实企业数据"},
            {"b": "总学分", "text": "36 学分；其中入门核心可依背景申请替换为额外选修"},
        ], "links": [{"label": "课程与 track 明细（Catalog）", "url": CAT.format(slug=slug)}]},
        {"key": "plan", "type": "ul", "items": [
            {"b": "培养定位", "text": "以「统计 + 计算 + 商业」三支柱设计，强调把模型落到业务决策；三个 track 对应分析工具、商业分析、计算数据分析三条职业线"},
            {"b": "跨学院结构", "text": "课程由 ISyE、计算学院与 Scheller 商学院共同开设，同一门 practicum 在三个学院各有课号，选课归属由所在 track 决定"},
            {"b": "在读提示", "text": "同项目另设线上版本（Online MSA），课程清单与费率口径不同，本页仅覆盖 Atlanta 在校全日制"},
            {"b": "申请材料", "text": "按 Institute 研究生申请流程提交成绩单、语言成绩与项目要求的补充材料；项目层面可能有额外先修要求，以项目官网为准"},
        ], "links": [{"label": "研究生申请流程（Catalog）", "url": PROC}]},
        {"key": "outcome", "type": "text", "text": "官网未披露本项目毕业生的就业率、起薪或雇主名单，本页不做估算。", "note": "资料来源：Georgia Tech Catalog 2026-2027 分析学项目页；就业数据以项目官网当年公布为准。"},
        city_card(),
    ],
    "links": gt_links(slug, [{"label": "项目官网 analytics.gatech.edu", "url": "https://analytics.gatech.edu"}]),
}

# ---------------- 3. MS Statistics ----------------
slug = "statistics-ms"
st = {
    "id": "gatech-stat-ms",
    "cn": "统计学理学硕士（MS Statistics · 30 学分 · ISyE 开设）",
    "en": "Master of Science in Statistics, H. Milton Stewart School of Industrial and Systems Engineering",
    "school": "佐治亚理工学院 Georgia Institute of Technology",
    "school_short": "佐治亚理工",
    "date": DATE,
    "ranks": GT_RANKS,
    "badges": ["STEM", "30 学分", "无论文要求", "统计 + 运筹"],
    "cards": [
        {"key": "req", "rows": [
            {"k": "学位与学分", "v": "MS in Statistics，30 学分；课程型学位，官网课程表未设论文/项目学分", "src": CAT.format(slug=slug)},
            {"k": "开设院系", "v": "H. Milton Stewart School of Industrial and Systems Engineering（ISyE），与数学学院联合开设统计类课程", "src": CAT.format(slug=slug)},
            {"k": "申请截止", "v": "官网 catalog 2026-2027 项目页未列具体轮次与截止日期（官网未披露）", "src": CAT.format(slug=slug)},
            {"k": "学分构成", "v": "核心 12 学分 + 统计选修 15 学分（选 5 门）+ 自由选修 3 学分 = 30 学分", "src": CAT.format(slug=slug)},
            {"k": "选课限制", "v": "ISYE 6739 不得计入自由选修学分", "src": CAT.format(slug=slug)},
            *lang_rows(),
        ]},
        {"key": "fee", "rows": gt_fee_rows(
            "未列入 Graduate Professional Program Rates，按 Graduate（Master & PhD Candidates）标准费率",
            "学费 $607/学分；12 学分及以上 $7,280/学期",
            "学费 $1,341/学分；12 学分及以上 $16,073/学期",
            "学费 $1,379/学分；12 学分及以上 $16,540/学期")},
        {"key": "course", "type": "ul", "items": [
            {"b": "核心（12 学分）", "text": "MATH 4261 Mathematical Statistics I（3）、MATH 4262 Mathematical Statistics II（3）、ISYE 6413 Design and Analysis of Experiments（3）、ISYE 6414 Statistical Modeling and Regression Analysis（3）"},
            {"b": "统计选修（选 5 门，15 学分）", "text": "MATH 4317 Analysis I、MATH 6262 Advanced Statistical Inference I、MATH 6263 Testing Statistical Hypotheses、MATH 6266 Linear Statistical Models、MATH 6267 Multivariate Statistical Analysis"},
            {"b": "时间序列与非参", "text": "ISYE 6402 Time Series Analysis、ISYE 6404 Nonparametric Data Analysis、ISYE 6412 Theoretical Statistics、ISYE 6416 Computational Statistics"},
            {"b": "应用统计", "text": "ISYE 6405 Statistical Methods for Manufacturing Design and Improvement、ISYE 6421 Biostatistics、ISYE 7400 Advanced Design of Experiments、ISYE 7401 Advanced Statistical Modeling、ISYE 7405 Multivariate Data Analysis"},
            {"b": "数据挖掘方向", "text": "ISYE 7406 Data Mining and Statistical Learning、ISYE 7441 Linear Statistical Models I"},
            {"b": "随机与可靠性", "text": "ISYE 6761 Stochastic Processes I、ISYE 6762 Stochastic Processes II、ISYE/MATH 6781 Reliability Theory、ISYE 6805 Reliability Engineering"},
            {"b": "金融统计", "text": "ISYE/MATH 6783 Statistical Techniques of Financial Data Analysis"},
            {"b": "自由选修（3 学分）", "text": "可选项目批准清单内课程，ISYE 6739 除外"},
        ], "links": [{"label": "课程表（Catalog）", "url": CAT.format(slug=slug)}]},
        {"key": "plan", "type": "ul", "items": [
            {"b": "培养定位", "text": "面向统计建模与方法论训练，核心覆盖数理统计、回归与实验设计，选修向时间序列、贝叶斯/非参、可靠性、生物统计与数据挖掘延伸"},
            {"b": "学科交叉", "text": "课程同时挂在数学学院与 ISyE，选课需同时满足开课学院与项目要求；统计选修须从批准清单中选择"},
            {"b": "在读形态", "text": "Atlanta 主校区全日制；官网未列论文要求，适合以就业或继续申请博士为目标的课程型硕士"},
            {"b": "申请材料", "text": "按 Institute 研究生申请流程提交；项目层面是否要求 GRE 未在 catalog 项目页明确，官网未披露"},
        ], "links": [{"label": "研究生申请流程（Catalog）", "url": PROC}]},
        {"key": "outcome", "type": "text", "text": "官网未披露本项目毕业生的就业率、起薪或雇主名单，本页不做估算。", "note": "资料来源：Georgia Tech Catalog 2026-2027 统计学项目页。"},
        city_card(),
    ],
    "links": gt_links(slug),
}

# ---------------- 4. MS Mechanical Engineering ----------------
slug = "mechanical-engineering-ms"
me = {
    "id": "gatech-me-ms",
    "cn": "机械工程理学硕士（MSME · 30 学分 · 主修 21 + 辅修 6 + 数学 3）",
    "en": "Master of Science in Mechanical Engineering (M.S.M.E.), Woodruff School of Mechanical Engineering",
    "school": "佐治亚理工学院 Georgia Institute of Technology",
    "school_short": "佐治亚理工",
    "date": DATE,
    "ranks": GT_RANKS,
    "badges": ["STEM", "30 学分", "可选 thesis", "设 BS/MS 通道"],
    "cards": [
        {"key": "req", "rows": [
            {"k": "学位与学分", "v": "M.S.M.E.，最低 30 学分；设非论文（Non-Thesis）与论文（Thesis）两种路径", "src": CAT.format(slug=slug)},
            {"k": "课程层级", "v": "4000 级课程最多 6 学分，其余须为 6000 级及以上", "src": CAT.format(slug=slug)},
            {"k": "主修/辅修结构", "v": "非论文：主修 21 学分 + 辅修 6 学分 + 数学 3 学分；论文：主修 12 学分课程 + 9 学分硕士论文 + 辅修 6 + 数学 3", "src": CAT.format(slug=slug)},
            {"k": "GPA", "v": "候选人须取得并维持研究生 GPA ≥ 3.0", "src": CAT.format(slug=slug)},
            {"k": "辅修规则", "v": "辅修须与主修明显不同；ME 6753、ME 6789、ME 6799 只能用于辅修；COA 8685、COA 8833（Computational Simulation of Building Design）、MGT 6165、BC 6650 可计入辅修；ME 6753 与 BC 6650 不可同时计入；ME 4405 与 ME 6705 只能取其一", "src": CAT.format(slug=slug)},
            {"k": "数学要求", "v": "数学 3 学分仅限数学学院开设课程", "src": CAT.format(slug=slug)},
            {"k": "BS/MS 通道", "v": "Woodruff 学院 BS/MS：完成 30 学分后申请、建议 75 学分前；须已修 COE 2001 Statics 并取得成绩；GPA ≥ 3.5；可对接机械、核工程、医学物理或生物工程交叉博士前硕士", "src": CAT.format(slug=slug)},
            *lang_rows(),
        ]},
        {"key": "fee", "rows": gt_fee_rows(
            "未列入专业项目费率表，按 Graduate（Master & PhD Candidates）标准费率",
            "学费 $607/学分；12 学分及以上 $7,280/学期",
            "学费 $1,341/学分；12 学分及以上 $16,073/学期",
            "学费 $1,379/学分；12 学分及以上 $16,540/学期")},
        {"key": "course", "type": "ul", "items": [
            {"b": "主修区（21 学分 · 非论文）", "text": "须为与机械工程相关且内在连贯的主题域；允许最多 6 学分 Special Problems（导师指导下的聚焦研究）计入 30 学分"},
            {"b": "主修区（论文路径）", "text": "12 学分课程 + 9 学分 MS Thesis；论文选题、导师与毕业时间取决于项目进度"},
            {"b": "辅修区（6 学分）", "text": "须与主修明显区分；可用 ME 6753 / ME 6789 / ME 6799，或 COA 8685、COA 8833、MGT 6165、BC 6650 等跨院课程"},
            {"b": "数学区（3 学分）", "text": "仅数学学院（School of Mathematics）课程满足要求"},
            {"b": "课程归属限制", "text": "主修与辅修课程须来自计算学院、理学院和/或工程学院；辅修不会显示在成绩单或学位文件上"},
            {"b": "论文支持", "text": "部分学生可获得研究生助研（GRA），含津贴与学费减免；由导师与项目经费决定"},
        ], "links": [{"label": "学位要求原文（Catalog）", "url": CAT.format(slug=slug)}]},
        {"key": "plan", "type": "ul", "items": [
            {"b": "培养定位", "text": "以「连贯主修 + 明确辅修 + 数学工具」的三角结构保证深度与广度；论文路径提供实验室/理论研究训练"},
            {"b": "方向覆盖", "text": "Woodruff 学院研究方向涵盖机械系统、热流体、制造、机器人与控制等；具体方向由主修区课程组合体现"},
            {"b": "在读形态", "text": "Atlanta 主校区全日制；同学院另设核工程、医学物理与生物工程交叉项目，BS/MS 学生可衔接"},
            {"b": "申请材料", "text": "按 Institute 研究生申请流程提交；BS/MS 需另行提交学院内部申请并在规定学分节点前完成"},
        ], "links": [{"label": "研究生申请流程（Catalog）", "url": PROC}]},
        {"key": "outcome", "type": "text", "text": "官网未披露本项目毕业生的就业率、起薪或雇主名单，本页不做估算。", "note": "资料来源：Georgia Tech Catalog 2026-2027 机械工程项目页。"},
        city_card(),
    ],
    "links": gt_links(slug),
}

# ---------------- 5. MS Bioinformatics ----------------
slug = "bioinformatics-ms"
bi = {
    "id": "gatech-bioinfo-ms",
    "cn": "生物信息学理学硕士（MS Bioinformatics · 36 学分 · 计算 + 生物交叉）",
    "en": "Master of Science in Bioinformatics, interdisciplinary program (College of Sciences / College of Computing)",
    "school": "佐治亚理工学院 Georgia Institute of Technology",
    "school_short": "佐治亚理工",
    "date": DATE,
    "ranks": GT_RANKS,
    "badges": ["STEM", "36 学分", "含 capstone", "跨学院"],
    "cards": [
        {"key": "req", "rows": [
            {"k": "学位与学分", "v": "MS in Bioinformatics，36 学分；核心 + 统计要求 + Capstone + 生信选修", "src": CAT.format(slug=slug)},
            {"k": "学院归属", "v": "跨学院项目，课程由生物科学学院、计算学院、计算科学与工程等共同开设", "src": CAT.format(slug=slug)},
            {"k": "课程替换", "v": "任何核心课替换须经项目主任（program director）批准", "src": CAT.format(slug=slug)},
            {"k": "申请截止", "v": "官网 catalog 2026-2027 项目页未列具体轮次与截止日期（官网未披露）", "src": CAT.format(slug=slug)},
            {"k": "学分构成", "v": "核心 15 学分（含统计 3）+ Capstone 3 学分 + 生信选修 15 学分 + 其余核心 = 36 学分", "src": CAT.format(slug=slug)},
            *lang_rows(),
        ]},
        {"key": "fee", "rows": gt_fee_rows(
            "本项目按 Graduate Professional Program Rates · MS in Bioinformatics (MSBINF) 单列费率",
            "$713/学分；12 学分及以上 $8,550/学期",
            "$1,686/学分；12 学分及以上 $20,236/学期",
            "$1,736/学分；12 学分及以上 $20,825/学期")},
        {"key": "course", "type": "ul", "items": [
            {"b": "核心课（15 学分）", "text": "BIOL 6150 Genomics and Applied Bioinformatics（3）、BIOL 7200 Programming for Bioinformatics（3）、BIOL 7210 Computational Genomics（3）、CS 4400 Introduction to Database Systems（3）、CX 4803 Special Topics in Computational Science and Engineering（Machine Learning in Computational Biology）3"},
            {"b": "统计要求（3 学分）", "text": "BIOS 4401 Experimental Design and Statistical Methods in Biological Sciences 或 MATH 3215 Introduction to Probability and Statistics"},
            {"b": "Capstone（3 学分）", "text": "BIOL 8530 Human Evolutionary Genomics、BIOL 8803 Special Topics（Applied Human Computational Genomics）、BIOL 8902 Special Problems、CEE 6720 Environmental Microbial Genomics、CSE 6242 Data and Visual Analytics 中选一"},
            {"b": "生信选修（15 学分）", "text": "可选生物、生物医学工程、计算机、计算科学与工程、化学、工业与系统工程学院、数学等研究生课程；完整推荐清单见 bioinformatics.gatech.edu/recommended-courses"},
            {"b": "研究型选修", "text": "BIOL 8902 需在同一实验室连续 3 个学期、累计 9 学分以上方可作为 capstone"},
        ], "links": [{"label": "推荐选修清单（项目官网）", "url": "https://bioinformatics.gatech.edu/recommended-courses"}]},
        {"key": "plan", "type": "ul", "items": [
            {"b": "培养定位", "text": "以基因组学与计算生物学为主线，把编程、数据库、机器学习与生物学问题结合；capstone 强调真实数据的完整分析链路"},
            {"b": "学科交叉", "text": "课程横跨生物科学、计算、数学与工程；同一门课在不同学院有不同课号，须按项目清单核对归属"},
            {"b": "在读形态", "text": "Atlanta 主校区全日制；同项目另设线上版本，费率与课程清单不同，本页仅覆盖在校全日制"},
            {"b": "申请材料", "text": "按 Institute 研究生申请流程提交；生物与计算双背景不足者通常需在核心课中补齐"},
        ], "links": [{"label": "研究生申请流程（Catalog）", "url": PROC}]},
        {"key": "outcome", "type": "text", "text": "官网未披露本项目毕业生的就业率、起薪或雇主名单，本页不做估算。", "note": "资料来源：Georgia Tech Catalog 2026-2027 生物信息学项目页。"},
        city_card(),
    ],
    "links": gt_links(slug, [{"label": "项目官网 bioinformatics.gatech.edu", "url": "https://bioinformatics.gatech.edu/"}]),
}

# ---------------- 6. MS HCI ----------------
slug = "human-computer-interaction-ms"
hc = {
    "id": "gatech-hci-ms",
    "cn": "人机交互理学硕士（MS-HCI · 36 学分 · 四学期 · 四个方向）",
    "en": "Master of Science in Human-Computer Interaction (MS-HCI), interdisciplinary program (Computing / Design / Ivan Allen / Psychology)",
    "school": "佐治亚理工学院 Georgia Institute of Technology",
    "school_short": "佐治亚理工",
    "date": DATE,
    "ranks": GT_RANKS,
    "badges": ["STEM", "36 学分", "四学期", "四个方向"],
    "cards": [
        {"key": "req", "rows": [
            {"k": "学位与学分", "v": "MS in Human-Computer Interaction，36 学分，四个学期；固定核心 9 + 方向课 9-10 + 选修 11-12 + 硕士项目 6", "src": CAT.format(slug=slug)},
            {"k": "方向归属", "v": "按学生所在学术单位确定方向：Interactive Computing（计算学院）、Digital Media（LMC 文学传媒与传播学院）、Industrial Design（工业设计学院）、Psychology（心理学院）", "src": CAT.format(slug=slug)},
            {"k": "成绩要求", "v": "项目 GPA ≥ 3.0；固定核心、方向课与项目课须 B 及以上；选修课须 C 及以上", "src": CAT.format(slug=slug)},
            {"k": "选课决定方", "v": "每位学生的具体课程由 HCI 项目协调人与所在学术单位共同确定", "src": CAT.format(slug=slug)},
            {"k": "申请截止", "v": "官网 catalog 2026-2027 项目页未列具体轮次与截止日期（官网未披露）", "src": CAT.format(slug=slug)},
            *lang_rows(),
        ]},
        {"key": "fee", "rows": gt_fee_rows(
            "本项目按 Graduate Professional Program Rates · MS in Human-Computer Interaction (MSHCI) 单列费率",
            "$694/学分；12 学分及以上 $8,315/学期",
            "$1,628/学分；12 学分及以上 $19,530/学期",
            "$1,675/学分；12 学分及以上 $20,096/学期")},
        {"key": "course", "type": "ul", "items": [
            {"b": "固定核心（9 学分）", "text": "CS/PSYC 6755 Human-Computer Interaction Foundations（3，第一学期修）；PSYC 6023 Psychological Research Methods for HCI（4，与 6755 同学期）；CS/ID/LMC/PSYC 6753 HCI-Professional Preparation and Practice（第一年秋 1 学分 + 第二年秋 1 学分，共 2）"},
            {"b": "Interactive Computing 方向（9 学分）", "text": "软件类选 3 学分：CS 6452 Prototyping Interactive Systems、CS 6456 Principles of User Interface Software、CS 7450 Information Visualization、CS 7470 Mobile and Ubiquitous Computing、CS 7633 Human-Robot Interaction；设计-评估-认知建模类选 6 学分：CS 6451、CS 6454、CS 6470、CS 6474、CS 6730、CS 6756、CS 6770 等"},
            {"b": "Digital Media 方向（9 学分）", "text": "LMC 6310 The Computer as an \"Expressive Medium\"（3）＋ LMC 6313 Principles of Interaction Design / LMC 6399 Discovery & Invention / LMC 6650 Project Studio 中选一门（3）＋ LMC 6000/8000 级课程（3）"},
            {"b": "Industrial Design 方向（10 学分）", "text": "ID 6212 Grad Studio Two: Health and Wellness 或 ID 6213 Grad Studio Two: Interactive Products（4）＋ 从 ID 6100、ID 6101、ID 6107、ID 6216、ID 6401、ID 6510、ID 6515、ID 6520、ID 6763、ID 6830、ID 7655 中选两门（6）"},
            {"b": "Psychology 方向（10 学分）", "text": "PSYC 6022 Psychological Statistics for HCI（4）＋ 从 PSYC 6011 Cognitive Psychology、PSYC 6012 Social Psychology、PSYC 6013 Biopsychology、PSYC 6014 Sensation and Perception、PSYC 6017 Human Abilities、PSYC 6041、PSYC 7101、PSYC 7102 中选 6 学分"},
            {"b": "选修与项目", "text": "选修：IC 与 DM 各 12 学分、ID 与 PSYC 各 11 学分；跨方向要求：IC 须至少 9 学分非 CS 选修，其余方向须至少 6 学分非本 track 选修；硕士项目 6 学分；HCI Special Problems（CS/ID/LMC/PSYC 8903）最多 3 学分计入选修"},
        ], "links": [{"label": "四方向课程表（Catalog）", "url": CAT.format(slug=slug)}]},
        {"key": "plan", "type": "ul", "items": [
            {"b": "培养定位", "text": "以「核心方法论 + 方向专精 + 跨学科选修 + 团队项目」构建，强调设计、评估与实证研究三种能力的组合"},
            {"b": "跨学院结构", "text": "由计算学院、设计学院、Ivan Allen 人文学院与心理学院共同开设，方向课由学生所在单位决定，跨方向选修是硬性要求"},
            {"b": "在读形态", "text": "Atlanta 主校区，四学期；项目课通常与外部客户或实验室合作"},
            {"b": "申请材料", "text": "按 Institute 研究生申请流程提交；设计/心理背景申请人按方向要求准备作品或研究经历说明"},
        ], "links": [{"label": "研究生申请流程（Catalog）", "url": PROC}]},
        {"key": "outcome", "type": "text", "text": "官网未披露本项目毕业生的就业率、起薪或雇主名单，本页不做估算。", "note": "资料来源：Georgia Tech Catalog 2026-2027 人机交互项目页。"},
        city_card(),
    ],
    "links": gt_links(slug),
}

for s in (cs, an, st, me, bi, hc):
    (OUT / f"{s['id']}.json").write_text(json.dumps(s, ensure_ascii=False, indent=1), encoding="utf-8")
print("gaTech specs:", len(list(OUT.glob("gatech-*.json"))))
