<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: '/' }">规则限制</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="美国对华规则限制动态">
						<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>
							<el-table :data="tableData" stripe style="width: 100%">
								<el-table-column prop="date" label="更新日期" width="150" />
								<el-table-column prop="org" label="机构/组织" width="150" />
								<el-table-column prop="rule" label="规则/措施名称" />
								<el-table-column prop="content" show-overflow-tooltip width="180" label="主要内容" />
								<el-table-column prop="influence" label="影响领域" />
							</el-table>
						</template>
					</custom-container>
				</el-col>
				<el-col :span="8">
					<custom-container title="风险信号">
						<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>
				</el-col>
			</el-row>

			<el-row :gutter="20">
				<el-col :span="12">
					<custom-container title="美国成立的排华科技联盟">
						<template #default>
							<div class="content-list-item content-card-title-text-2" v-for="item in policyBanData" :key="item.title">
								<div class="content-card-title-box">
									<div class="content-card-title-text">{{ item.title }}</div>
									<div class="content-card-title-remmber">{{ item.remember.join("、") }}</div>
								</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>
						</template>
					</custom-container>
				</el-col>
				<el-col :span="12">
					<custom-container title="受影响主要中国科技主体">
						<template #default>
							<div class="content-list-item-box">
								<div
									class="content-list-item content-card-title-text-2 content-card-title-text-3"
									v-for="item in subjectListData"
									:key="item.title"
								>
									<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>
						</template>
					</custom-container>
				</el-col>
			</el-row>

			<el-row :gutter="20">
				<el-col :span="24">
					<custom-container title="美国主要技术委员会及限制规则">
						<template #default>
							<div class="content-list-item-box content-list-item-box-2">
								<div
									class="content-list-item content-card-title-text-2 content-card-title-text-4"
									v-for="item in orgAndruleList"
									:key="item.title"
								>
									<div class="content-card-title-text">{{ item.org }}</div>
									<div class="content-card-desc">主要对华限制</div>
									<div class="content-card-list-item" v-for="(subItem, idx) in item.rules" :key="subItem">
										<div class="content-card-list-item-num">{{ idx + 1 }}</div>
										<div class="content-card-list--item-desc">{{ subItem }}</div>
									</div>
								</div>
							</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: 310,
		desc: "生效政策禁令"
	},
	{
		num: 14433,
		desc: "受限制实体"
	},
	{
		num: 126,
		desc: "受限制领域"
	},
	{
		num: 37,
		desc: "本月更新"
	}
]);

// 规则限制
const tableData = ref([
	{
		date: " 2024年5月14日",
		org: "美国商务部",
		rule: "AI芯片出口新规",
		content: "进一步限制向中国出口高端AI芯片",
		influence: "人工智能"
	},
	{
		date: "2023年8月",
		org: "美国财政部",
		rule: "对华投资限制令",
		content: "限制美企在华半导体、AI、量子技术领域投资",
		influence: "认证体系"
	},
	{
		date: "2023年7月",
		org: "FCC",
		rule: "设备授权新规",
		content: " 限制中国测试实验室参与美国设备认证",
		influence: "投资审查"
	},
	{
		date: "2023年5月",
		org: "美国商务部",
		rule: "实体清单更新",
		content: "新增36家中国科技公司至实体清单",
		influence: "出口管制"
	},
	{
		date: "2023年3月",
		org: "美国国会",
		rule: "CHIPS法案实施细则",
		content: "限制获得补贴的企业在华投资先进半导体",
		influence: "半导体"
	},
	{
		date: " 2022年1月",
		org: "美国商务部",
		rule: "AI芯片出口新规",
		content: "进一步限制向中国出口高端AI芯片",
		influence: "人工智能"
	}
]);
// 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 policyBanData = ref([
	{
		title: "芯片四方联盟 (Chip 4)",
		desc: `旨在建立半导体供应链安全机制，减少对中国依赖，协调出口管制政策。`,
		tag: ["半导体", "供应链"],
		remember: ["美国", "日本", "韩国", "台湾"]
	},
	{
		title: "美欧贸易与技术委员会 (TTC)",
		desc: `协调美欧在关键技术、数字政策、供应链安全等领域的立场，应对非市场行为。`,
		tag: ["技术标准", "供应链"],
		remember: ["美国", "欧盟"]
	},
	{
		title: "Quad 关键技术工作组",
		desc: `旨在建立半导体供应链安全机制，减少对中国依赖，协调出口管制政策。`,
		tag: ["新兴技术", "供应链"],
		remember: ["美国", "日本", "印度", "澳大利亚"]
	},
	{
		title: "AUKUS 安全伙伴关系",
		desc: `最初聚焦核潜艇技术，现已扩展至网络能力、人工智能、量子技术等高科技领域。`,
		tag: ["国防科技", "量子技术"],
		remember: ["美国", "英国", "澳大利亚"]
	}
]);

// 政策禁令限制
const subjectListData = ref([
	{
		title: "华为技术有限公司",
		desc: `旨在建立半导体供应链安全机制，减少对中国依赖，协调出口管制政策。`,
		tag: ["5G", "半导体"]
	},
	{
		title: "中芯国际 (SMIC)",
		desc: `被列入实体清单，限制获取先进芯片制造设备，阻碍10nm及以下工艺发展。`,
		tag: ["半导体制造", "芯片"]
	},
	{
		title: "海康威视",
		desc: `被列入投资黑名单，限制美资投资，限制获取美国AI芯片和技术。`,
		tag: ["人工智能", "面部识别"]
	},
	{
		title: "商汤科技",
		desc: `最初聚焦核潜艇技术，现已扩展至网络能力、人工智能、量子技术等高科技领域。`,
		tag: ["国防科技", "量子技术"]
	},
	{
		title: "长江存储 (YMTC)",
		desc: `被列入实体清单，限制获取半导体设备，阻碍NAND闪存技术发展。`,
		tag: ["存储芯片", "半导体"]
	},
	{
		title: "大疆创新 (DJI)",
		desc: `被列入实体清单，限制技术获取，美国内政部停飞其无人机舰队。`,
		tag: ["无人机", "航空科技"]
	}
]);

// 政策禁令限制
const orgAndruleList = ref([
	{
		org: "联邦通信委员会 (FCC)",
		rules: [
			"《安全与可信通信网络法》禁止使用华为和中兴设备",
			"撤销中国电信在美运营授权",
			"限制中国测试实验室参与设备认证",
			'将多家中国科技公司列入"威胁国家安全"清单'
		]
	},
	{
		org: "商务部工业和安全局 (BIS)",
		rules: ["实体清单 - 限制技术出口", "军事最终用户清单 (MEU)", "外国直接产品规则 (FDPR)", "半导体制造设备出口管制"]
	},
	{
		org: "外国投资委员会 (CFIUS)",
		rules: ["FIRRMA法案扩大审查范围", "限制中国对美关键技术投资", "强制申报特定交易", "针对中国投资者的特别关注"]
	},
	{
		org: "国务院",
		rules: ["对中共党员及其直系亲属的签证限制", "STEM专业中国学生签证限制", "中国军民融合战略相关实体限制", "对华技术外交施压"]
	}
]);

//
</script>

<style 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);
}
.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(--base-color);
}
.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-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 {
	font-size: 16px;
	font-weight: 600;
	color: var(--base-color);
}
.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: rgba(10, 87, 166, 1);
}
.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-list-item-box {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.content-list-item-box-2 {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
}
.content-card-title-text-2 {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 10px;
	padding-left: 14px;
	padding-right: 14px;
	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-title-text-3 {
	max-width: 45%;
	gap: 19px;
}
.content-card-title-text-4 {
	display: flex;
	flex-wrap: wrap;
	width: 45%;
	gap: 10px;
}
.content-card-list-item {
	border-bottom: 1px solid rgba(234, 236, 238, 1);
	padding-bottom: 5px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
}
.content-card-list-item-num {
	width: 24px;
	height: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 12px;
	font-weight: 400;
	border-radius: 50%;
	background-color: rgba(231, 243, 255, 1);
	color: rgba(10, 87, 166, 1);
}
.content-card-title-box {
	display: flex;
	align-items: center;
	gap: 8px;
	justify-content: space-between;
}
.content-card-title-remmber {
	font-size: 14px;
	font-weight: 400;
	color: rgba(132, 136, 142, 1);
}
.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: 44px;
}
.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;
}
</style>
