:root {
	--bg: #eef3f0;
	--surface: rgba(255, 255, 255, 0.94);
	--surface-strong: #ffffff;
	--line: rgba(19, 61, 46, 0.12);
	--text: #173229;
	--muted: #5f766d;
	--brand: #0d6d63;
	--brand-dark: #084d46;
	--accent: #f3a53b;
	--success: #1f8f58;
	--danger: #c84646;
	--shadow: 0 24px 60px rgba(16, 47, 38, 0.12);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: "Segoe UI", "Noto Sans TC", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(243, 165, 59, 0.22), transparent 24%),
		radial-gradient(circle at top right, rgba(13, 109, 99, 0.18), transparent 28%),
		linear-gradient(180deg, #f5f8f6 0%, #ebf1ee 100%);
	padding: 28px 18px 72px;
}

a {
	color: inherit;
}

.page-shell {
	max-width: 1120px;
	margin: 0 auto;
}

.hero-card,
.container {
	background: var(--surface);
	border: 1px solid rgba(255, 255, 255, 0.65);
	box-shadow: var(--shadow);
	backdrop-filter: blur(10px);
}

.hero-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 32px;
	border-radius: 28px;
	margin-bottom: 14px;
}

.eyebrow {
	display: inline-flex;
	margin: 0 0 16px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(13, 109, 99, 0.1);
	color: var(--brand);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero-copy h1,
.container h2 {
	margin: 0;
	line-height: 1.1;
}

.hero-copy h1 {
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	letter-spacing: -0.04em;
}

.hero-text,
.section-description,
.field-hint {
	color: var(--muted);
	line-height: 1.7;
}

.hero-text {
	max-width: 44rem;
	font-size: 1.04rem;
	margin: 18px 0 0;
}

.notice-banner {
	margin-bottom: 20px;
	padding: 20px 22px;
	border: 3px solid #ea5455;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 244, 244, 0.98) 0%, rgba(255, 233, 233, 0.94) 100%);
	box-shadow: 0 18px 30px rgba(200, 70, 70, 0.12);
}

.notice-banner-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.notice-title {
	margin: 0 0 10px;
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.4;
	color: #8b1e1e;
}

.notice-text {
	margin: 0 0 8px;
	font-size: 1rem;
	line-height: 1.7;
	color: #7a2c2c;
}

.notice-highlight {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #ea5455;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.01em;
}

.notice-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(234, 84, 85, 0.12);
	color: #b42323;
	font-size: 13px;
	font-weight: 700;
}

.container {
	border-radius: 28px;
	padding: 30px;
}

.panel-header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section-description {
	margin: 10px 0 0;
}

hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 28px 0;
}

.upload-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

label {
	font-weight: 700;
}

input[type="file"] {
	width: 100%;
	padding: 14px;
	border: 1px dashed rgba(13, 109, 99, 0.35);
	border-radius: 16px;
	background: rgba(13, 109, 99, 0.03);
}

.field-hint {
	margin: 0;
	font-size: 0.94rem;
}

button,
.btn {
	appearance: none;
	border: 0;
	border-radius: 14px;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

button:hover,
.btn:hover {
	transform: translateY(-1px);
}

.button-primary {
	align-self: flex-start;
	min-width: 148px;
	background: linear-gradient(135deg, var(--brand) 0%, #0b8b7d 100%);
	color: #fff;
	padding: 14px 20px;
	font-size: 1rem;
	font-weight: 700;
	box-shadow: 0 14px 24px rgba(13, 109, 99, 0.22);
}

.progress-area {
	margin-top: 14px;
	padding: 16px;
	border-radius: 18px;
	background: rgba(13, 109, 99, 0.04);
	border: 1px solid rgba(13, 109, 99, 0.08);
}

.progress-meta {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 0.94rem;
	color: var(--muted);
}

.progress-bar-container {
	overflow: hidden;
	background: #dde7e3;
	border-radius: 999px;
}

.progress-bar {
	height: 26px;
	width: 0%;
	color: #fff;
	text-align: center;
	line-height: 26px;
	white-space: nowrap;
	background: linear-gradient(135deg, var(--brand) 0%, #0b8b7d 100%);
	border-radius: 999px;
	transition: width 0.3s ease;
}

.alerts {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
}

.alert {
	padding: 14px 16px;
	border-radius: 16px;
	font-weight: 600;
}

.alert.success {
	background: rgba(31, 143, 88, 0.12);
	color: #12633c;
}

.alert.error {
	background: rgba(200, 70, 70, 0.12);
	color: #8d2626;
}

.table-wrapper {
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: var(--surface-strong);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: middle;
}

th {
	background: #f4f7f6;
	color: #345247;
	font-size: 0.95rem;
}

td {
	word-break: break-word;
}

.check-col {
	width: 56px;
	text-align: center;
}

.no-files {
	padding: 28px;
	text-align: center;
	color: var(--muted);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
}

.btn-download {
	background: linear-gradient(135deg, #23885b 0%, #1d724c 100%);
}

.btn-delete-main {
	width: 100%;
	margin-top: 16px;
	padding: 14px 18px;
	background: linear-gradient(135deg, var(--danger) 0%, #ad2f2f 100%);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
}

footer {
	text-align: center;
	margin-top: 28px;
	color: var(--muted);
	font-size: 0.92rem;
}

footer a {
	color: var(--brand);
	text-decoration: none;
}

@media (max-width: 820px) {
	body {
		padding: 18px 12px 48px;
	}

	.hero-card,
	.container {
		border-radius: 22px;
		padding: 22px;
	}

	.notice-banner {
		padding: 18px;
		border-radius: 18px;
	}

	.hero-card {
		grid-template-columns: 1fr;
	}

	.button-primary {
		width: 100%;
		align-self: stretch;
	}

	.panel-header,
	.files-header {
		align-items: start;
	}
}

@media (max-width: 640px) {
	table,
	thead,
	tbody,
	th,
	td,
	tr {
		display: block;
	}

	thead {
		display: none;
	}

	.table-wrapper {
		overflow: visible;
		border: 0;
		background: transparent;
	}

	.notice-title {
		font-size: 1.15rem;
	}

	.notice-highlight {
		width: 100%;
		justify-content: center;
	}

	tbody {
		display: grid;
		gap: 14px;
	}

	tr {
		border: 1px solid var(--line);
		border-radius: 18px;
		background: var(--surface-strong);
		padding: 10px 14px;
		box-shadow: 0 10px 30px rgba(16, 47, 38, 0.06);
	}

	td {
		display: flex;
		justify-content: space-between;
		gap: 14px;
		padding: 10px 0;
		border-bottom: 1px solid rgba(19, 61, 46, 0.08);
		font-size: 0.95rem;
	}

	td:last-child {
		border-bottom: 0;
		padding-bottom: 4px;
	}

	td::before {
		content: attr(data-label);
		flex: 0 0 92px;
		font-weight: 700;
		color: #3d5e52;
	}

	.check-col {
		width: auto;
		text-align: left;
	}

	.check-col::before {
		content: attr(data-label);
	}

	.btn {
		width: 100%;
	}

	.no-files {
		display: block;
		text-align: center;
	}
}