<template>
	<div class="page-container">
		<div style="height: 30px; width: 960px; display: flex; justify-content: flex-start">
			<el-breadcrumb :separator-icon="ArrowRight">
				<el-breadcrumb-item>国家科技安全</el-breadcrumb-item>
				<el-breadcrumb-item>中美博弈概览</el-breadcrumb-item>
				<el-breadcrumb-item :to="{ path: '/' }"
					><span style="font-weight: 700; color: rgba(6, 110, 217, 1)"
						>美对华科技合作限制信息平台</span
					></el-breadcrumb-item
				>
			</el-breadcrumb>
		</div>
		<el-input v-model="searchKey" style="max-width: 960px" placeholder="搜索政策关键词" class="input-with-select">
			<template #append>
				<el-button :icon="Search" size="large" type="primary">搜索</el-button>
			</template>
		</el-input>
		<div class="page-data">
			<div class="page-data-item" v-for="item in pageData" :key="item.desc">
				<div class="page-data-item-num">
					{{ item.num }}
				</div>
				<div class="page-data-item-desc">
					{{ item.desc }}
				</div>
			</div>
		</div>

		<!-- 内容 -->
		<div class="page-content">
			<el-row :gutter="20">
				<el-col :span="16">
					<custom-container title="本次制裁共新增83个实体，其中53个中国大陆实体、1个中国台湾实体。" height="866px">
						<template #header-left>
							<div class="custom-container-header-left">
								<img class="custom-container-icon" src="@/assets/images/icon-law.png" alt="" />
								<span class="custom-container-title">最新限制动态</span>
							</div>
						</template>
						<!-- 顶部右侧自定义内容 -->
						<template #header-right>
							<div style="display: flex; gap: 12px">
								<el-button type="primary" link>查看详情 ></el-button>
							</div>
						</template>

						<!-- 中间内容自定义 -->
						<template #default>
							<div class="content-card" v-for="item in limitData" :key="item.title">
								<div class="content-card-date">{{ `${item.date} · ${item.importance}` }}</div>
								<div class="content-card-title">
									<div class="content-card-title-text">{{ item.title }}</div>
									<!-- <div class="content-card-title-tag" v-for="tag in item.tag" :key="tag">{{ tag }}</div> -->

									<el-tag :type="tagType[Math.floor(Math.random() * 5)]" v-for="tag in item.tag" :key="tag">{{
										tag
									}}</el-tag>
								</div>
								<div class="content-card-desc">{{ item.desc }}</div>
							</div>
						</template>

						<!-- 底部自定义内容 -->
						<!-- <template #footer>
					<el-button>取消</el-button>
					<el-button type="primary">保存更改</el-button>
				</template> -->
					</custom-container>
				</el-col>
				<el-col :span="8">
					<custom-container title="风险信号" height="450px">
						<template #header-left>
							<div class="custom-container-header-left">
								<img class="custom-container-icon" src="@/assets/images/icon-warning.png" alt="" />
								<span class="custom-container-title">风险信号</span>
								<span class="custom-container-count">5</span>
							</div>
						</template>
						<!-- 顶部右侧自定义内容 -->
						<template #header-right>
							<div style="display: flex; gap: 12px">
								<el-button type="primary" link>更多 ></el-button>
							</div>
						</template>

						<!-- 中间内容自定义 -->
						<template #default>
							<div class="content-list-card" v-for="item in riskData" :key="item.title">
								<el-tag :type="item.danger" size="small">{{ item.importance }}</el-tag>
								<div class="content-list">
									<div class="content-list-title">{{ item.title }}</div>
									<div class="content-list-time">{{ item.date }}</div>
								</div>
							</div>
							<div class="content-list-footer">
								<el-button type="primary" size="default" style="width: 100%">
									<img class="icon-mark" src="@/assets/images/icon-mark.png" alt="" />
									风险处理
								</el-button>
							</div>
						</template>
					</custom-container>

					<custom-container title="学术交流限制" height="400px">
						<template #header-left>
							<div class="custom-container-header-left">
								<img class="custom-container-icon" src="@/assets/images/icon-hot.png" alt="" />
								<span class="custom-container-title">学术交流限制</span>
							</div>
						</template>

						<!-- 中间内容自定义 -->
						<template #default>
							<div class="content-list-card" v-for="item in academicData" :key="item.title">
								<!-- <el-tag :type="item.danger" size="small">{{ item.importance }}</el-tag> -->
								<div class="content-list-row">
									<div class="content-card-title-text">{{ item.title }}</div>

									<div class="content-card-desc">{{ item.desc }}</div>
								</div>
							</div>
						</template>
					</custom-container>
				</el-col>
			</el-row>

			<el-row :gutter="20">
				<el-col :span="12">
					<custom-container title="政策禁令限制">
						<template #header-left>
							<div class="custom-container-header-left1">
								<div class="icon"></div>
								<div class="title">学术交流限制</div>
							</div>
						</template>
						<template #default>
							<div
								class="content-list-item content-card-title-text-2"
								v-for="item in policyBanData"
								:key="item.title"
							>
								<!-- <el-tag :type="item.danger" size="small">{{ item.importance }}</el-tag> -->
								<div class="content-card-title-text">{{ item.title }}</div>
								<div class="content-card-desc">{{ item.desc }}</div>
								<div class="content-card-tag-box">
									<div class="content-card-tag-box-item">
										<el-tag
											:type="tagType[Math.floor(Math.random() * 5)]"
											v-for="tag in item.tag"
											:key="tag"
											>{{ tag }}</el-tag
										>
									</div>
									<el-button class="content-card-tag-btn" type="primary" link>查看全文 ></el-button>
								</div>
							</div>
							<div class="content-card-footer">
								<el-button type="primary" link>
									查看详情 <img class="icon-mark" src="@/assets/images/icon-double-down.png" alt="" />
								</el-button>
							</div>
						</template>
					</custom-container>
				</el-col>
				<el-col :span="12">
					<custom-container title="近期时间线">
						<template #header-left>
							<div class="custom-container-header-left1">
								<div class="icon"></div>
								<div class="title">近期时间线</div>
							</div>
						</template>
						<template #default>
							<div style="text-align: center; width: 100%; margin-bottom: 20px">
								<el-space>
									<el-button plain type="primary">全部</el-button>
									<el-button>半导体</el-button>
									<el-button>人工智能</el-button>
									<el-button>出口管制</el-button>
									<el-button>学术交流</el-button>
									<el-button>投资审查</el-button>
								</el-space>
							</div>
							<div class="time-line" v-for="item in recentTimeline" :key="item.title">
								<img class="time-line-dot" src="@/assets/images/dot.png" alt="" />
								<div class="time-line-title">
									<span class="time-line-title-text">{{ item.date }}</span>
									<div class="time-line-desc">
										<div class="time-line-desc-title">{{ item.title }}</div>
										<div class="content-card-tag-box-item">
											<el-tag
												:type="tagType[Math.floor(Math.random() * 5)]"
												v-for="tag in item.tag"
												:key="tag"
												>{{ tag }}</el-tag
											>
										</div>
									</div>
								</div>
							</div>
							<div class="content-card-footer">
								<el-button type="primary" link>
									查看详情 <img class="icon-mark" src="@/assets/images/icon-double-down.png" alt="" />
								</el-button>
							</div>
						</template>
					</custom-container>
				</el-col>
			</el-row>

			<el-row :gutter="20">
				<el-col :span="12">
					<custom-container title="科研项目合作情况">
						<template #header-left>
							<div class="custom-container-header-left1">
								<div class="icon"></div>
								<div class="title">科研项目合作情况</div>
							</div>
						</template>
						<template #default>
							<div
								class="content-list-item content-card-title-text-2"
								v-for="item in researchData"
								:key="item.title"
							>
								<!-- <el-tag :type="item.danger" size="small">{{ item.importance }}</el-tag> -->
								<div class="content-card-title-text">{{ item.title }}</div>
								<div class="content-card-desc">{{ item.desc }}</div>
							</div>
							<div class="content-card-footer">
								<el-button type="primary" link>
									查看更多 <img class="icon-mark" src="@/assets/images/icon-double-down.png" alt="" />
								</el-button>
							</div>
						</template>
					</custom-container>
				</el-col>
				<el-col :span="12">
					<custom-container title="人才流动限制情况">
						<template #header-left>
							<div class="custom-container-header-left1">
								<div class="icon"></div>
								<div class="title">人才流动限制情况</div>
							</div>
						</template>
						<template #default>
							<div class="content-list-item content-card-title-text-2" v-for="item in talentData" :key="item.title">
								<div class="content-card-title-text">{{ item.title }}</div>
								<div class="content-card-desc">{{ item.desc }}</div>
							</div>
							<div class="content-card-footer">
								<el-button type="primary" link>
									查看更多 <img class="icon-mark" src="@/assets/images/icon-double-down.png" alt="" />
								</el-button>
							</div>
						</template>
					</custom-container>
				</el-col>
			</el-row>
		</div>
	</div>
</template>

<script setup>
import { ref } from "vue";
import { Search } from "@element-plus/icons-vue";
import { ArrowRight } from "@element-plus/icons-vue";
import CustomContainer from "@/components/Container/index.vue";
const searchKey = ref("");
const pageData = ref([
	{
		num: 42,
		desc: "生效政策禁令"
	},
	{
		num: 128,
		desc: "受限制实体"
	},
	{
		num: 16,
		desc: "受限制领域"
	},
	{
		num: 7,
		desc: "本月更新"
	}
]);

// tag类型
const tagType = ["primary", "success", "info", "warning", "danger"];
// 限制动态数据
const limitData = ref([
	{
		date: "2025年9月2日",
		importance: "紧急",
		tag: ["半导体", "出口管制"],
		title: "美国撤销多家芯片企业在华VEU授权",
		desc: `美国最终用户审查委员会（ERC）宣布撤销英特尔、SK海力士和三星在中国工厂的"经验证最终用户"（VEU）授权，影响其在华芯片生产。新规定计划于10月2日《联邦公报》出版120天后正式生效:cite[3]:cite[4]。`
	},
	{
		date: "2025年9月2日",
		importance: "紧急",
		tag: [" 半导体", "晶圆制造"],
		title: "台积电南京厂VEU资格被撤销",
		desc: `台积电已收到美国政府通知，其南京工厂的"经验证最终用户"（VEU）资格将于2025年12月31日被撤销。此后，每一批运往南京工厂的受管制设备均需经过美国商务部逐案审批。`
	},
	{
		date: "2025年9月2日",
		importance: "紧急",
		tag: [" 半导体", "晶圆制造"],
		title: "台积电南京厂VEU资格被撤销",
		desc: `台积电已收到美国政府通知，其南京工厂的"经验证最终用户"（VEU）资格将于2025年12月31日被撤销。此后，每一批运往南京工厂的受管制设备均需经过美国商务部逐案审批。`
	},
	{
		date: "2025年9月2日",
		importance: "紧急",
		tag: [" 报道题", "晶圆制造"],
		title: "台积电南京厂VEU资格被撤销",
		desc: `台积电已收到美国政府通知，其南京工厂的"经验证最终用户"（VEU）资格将于2025年12月31日被撤销。此后，每一批运往南京工厂的受管制设备均需经过美国商务部逐案审批。`
	},
	{
		date: "2025年9月2日",
		importance: "紧急",
		tag: [" 报道题", "晶圆制造"],
		title: "台积电南京厂VEU资格被撤销",
		desc: `台积电已收到美国政府通知，其南京工厂的"经验证最终用户"（VEU）资格将于2025年12月31日被撤销。此后，每一批运往南京工厂的受管制设备均需经过美国商务部逐案审批。`
	},
	{
		date: "2025年9月2日",
		importance: "紧急",
		tag: [" 报道题", "晶圆制造"],
		title: "台积电南京厂VEU资格被撤销",
		desc: `台积电已收到美国政府通知，其南京工厂的"经验证最终用户"（VEU）资格将于2025年12月31日被撤销。此后，每一批运往南京工厂的受管制设备均需经过美国商务部逐案审批。`
	}
]);

// 风险
const riskType = ref(["特别重大", "重大风险", "一般风险"]);
const riskData = ref([
	{
		date: "一天前",
		importance: "特别重大",
		danger: "danger",
		title: "美国大而美法案落地，总统签署通过"
	},
	{
		date: "两天前",
		importance: "重大风险",
		danger: "warning",
		title: "美大而美法案7月1日以51:50的票数通过..."
	},
	{
		date: "三天前",
		importance: "特别重大",
		danger: "danger",
		title: "首次提出“限制外国敏感实体获取补贴”"
	},
	{
		date: "四天前",
		importance: "一般风险",
		danger: "success",
		title: "将中国企业海外子公司、合资公司纳入受..."
	},
	{
		date: "五天前",
		importance: "一般风险",
		danger: "success",
		title: "H.R.8333《生物安全法案》将华大基因等..."
	}
]);

// 学术交流限制
const academicData = ref([
	{
		title: "签证限制",
		desc: "美国国务院已开始取消部分中国留学生的签证，针对STEM领域学生和研究人员加强审查。"
	},
	{
		title: "合作项目终止",
		desc: "密歇根大学终止了与上海交通大学的长期合作，佐治亚理工停止深圳学院运营。"
	},
	{
		title: "数据访问限制",
		desc: "美国国立卫生研究院（NIH）禁止中国、俄罗斯、伊朗等国的机构访问其受控数据。"
	}
]);

// 政策禁令限制
const policyBanData = ref([
	{
		title: "《美国优先投资政策》总统备忘录",
		desc: `2025年2月签署，限制美国资本投资中国"军民融合"战略相关产业，并审查甚至阻止中国对美关键领域的投资。备忘录扩大CFIUS的审查范围，要求将限制领域扩展到"医疗、农业、能源、原材料等战略行业"。`,
		tag: ["投资审查", "国家暗安全"]
	},
	{
		title: "《外国公司问责法》",
		desc: `2025年2月签署，限制美国资本投资中国"军民融合"战略相关产业，并审查甚至阻止中国对美关键领域的投资。备忘录扩大CFIUS的审查范围，要求将限制领域扩展到"医疗、农业、能源、原材料等战略行业"。`,
		tag: ["金融", "上市公司"]
	}
]);

// 近期时间线
const recentTimeline = ref([
	{
		date: "2025-9-2",
		tag: ["半导体", "出口管制"],
		title: "撤销芯片企业VEU授权"
	},
	{
		date: "2025-07-29",
		tag: ["人工智能", "出口管制"],
		title: "强化AI芯片出口限制"
	},
	{
		date: "2025-05-08",
		tag: ["半导体", "出口管制"],
		title: "TikTok剥离期限再次延期"
	}
	// {
	// 	date: "2025-04-02",
	// 	tag: ["半导体", "出口管制"],
	// 	title: "14117规则生效"
	// }
]);

// 科研项目合作
const researchData = ref([
	{
		title: "合作范围缩小",
		desc: "中美科技合作协定虽得以续签，但范围有所收窄，更强调透明性、互惠性和研究人员保护。"
	},
	{
		title: "敏感领域合作遇冷",
		desc: `在人工智能、量子计算等敏感技术领域，合作项目面临严格的"国家安全审查"。`
	}
]);

// 人才流动限制
const talentData = ref([
	{
		title: "华人科学家离美趋势",
		desc: "2010年至2021年间，有近1.25万名华裔科学家离开美国回到中国。"
	},
	{
		title: "审查措施加强",
		desc: `美国政府以"国家安全"为由，调查并限制华人科学家参与美国科研项目。`
	}
]);
</script>

<style lang="scss" scoped>
.page-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* height: 100vh; */
	margin: 0px auto;
	padding: 0px 120px;
	padding-top: 40px;
	/* background-color: rgba(234, 236, 238, 1); */
	background: url("/assets/images/background.png");
}
.page-data {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 20px;
	width: 960px;
	gap: 80px;
}
.page-data-item {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.page-data-item-num {
	font-size: 24px;
	font-weight: 600;
	color: var(--color-main-active);
}
.page-data-item-desc {
	font-size: 12px;
	color: rgba(95, 101, 108, 1);
}
.page-content {
	margin-top: 20px;
	width: 100%;
	/* padding: 0px 20px; */
}
.custom-container-header-left1 {
	display: flex;
	margin-left: -15px;
	height: 24px;
	.icon {
		width: 8px;
		height: 16px;
		background: var(--color-main-active);
		margin-top: 4px;
		border-radius: 0 2px 2px 0;
	}
	.title {
		margin-left: 14px;
		height: 24px;
		color: var(--color-main-active);
		font-family: Microsoft YaHei;
		font-size: 16px;
		font-weight: 700;
		line-height: 24px;
	}
}
.custom-container-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 20px;
	padding-bottom: 5px;
	/* border-bottom: 1px solid rgba(234, 236, 238, 1); */
}
.custom-container-title {
	color: var(--color-main-active);
	font-family: Microsoft YaHei;
	font-size: 16px;
	font-weight: 700;
}
.custom-container-count {
	text-align: center;
	width: 24px;
	height: 16px;
	border-radius: 100px;
	font-size: 12px;
	background-color: rgba(255, 77, 79, 1);
	color: #fff;
}
.custom-container-icon {
	height: 18px;
	width: 18px;
}
.content-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 20px;
	background-color: rgba(247, 248, 249, 1);
	border-radius: 8px;
	margin-bottom: 14px;
}
.content-card-date {
	font-size: 14px;
	font-weight: 400;
	color: var(--color-main-active);
}
.content-card-title {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.content-card-title-text {
	font-size: 16px;
	font-weight: 700;
	color: rgba(10, 18, 30, 1);
	margin-right: auto;
}
.content-card-title-text-2 {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 10px;
	margin-bottom: 10px;
	border-radius: 4px;
	/* box-shadow: 0 2px 8px rgba(60, 87, 126, 0.2); */
	box-shadow: 0 0 15px 0 rgba(60, 87, 126, 0.2);
}
.content-card-tag-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.content-card-tag-box-item {
	display: flex;
	align-items: center;
	gap: 6px;
}
.content-card-tag-btn {
	margin-left: autp;
}
.content-card-title-tag {
	font-size: 12px;
	color: rgba(95, 101, 108, 1);
}
.content-card-desc {
	font-size: 12px;
	color: rgba(95, 101, 108, 1);
}

.content-list-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.content-list {
	height: 40px;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid rgba(234, 236, 238, 1);
}
.content-list-row {
	height: 60px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(234, 236, 238, 1);
}
.content-list-title {
	width: 80%;
	font-size: 16px;
	font-weight: 400;
	color: rgba(59, 65, 75, 1);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.content-list-time {
	font-size: 14px;
	color: rgba(132, 136, 142, 1);
}
.content-list-footer {
	width: 100%;
	margin-top: 115px;
}
.icon-mark {
	height: 12px;
	width: 12px;
	margin-right: 5px;
	margin-left: 8px;
}
.content-card-footer {
	display: flex;
	width: 100%;
	justify-content: center;
	margin-top: 30px;
}

.time-line {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	padding-left: 10px;
	margin-bottom: 20px;
}
.time-line-title {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}
.time-line-dot {
	width: 10px;
	height: 10px;
	margin-top: 5px;
}
.time-line-title-text {
	font-size: 14px;
	font-weight: 700;
	color: rgba(95, 101, 108, 1);
	color: var(--base-color);
}
.time-line-desc {
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.time-line-desc-title {
	font-size: 16px;
	font-weight: 400;
	color: rgba(95, 101, 108, 1);
	margin-bottom: 5px;
}
.time-line-desc-text {
	font-size: 14px;
	font-weight: 400;
	color: rgba(95, 101, 108, 1);
}
.time-line-dot {
	width: 8px;
	height: 8px;
	background-color: var(--color-main-active);
	border-radius: 50%;
}
</style>
