/* 鍏叡涓婁紶椤甸潰鏍峰紡 - 鐢ㄤ簬 office-to-pdf.jsp, watermarkpdf.jsp, imagetodoc.jsp, split-pdf.jsp */

/* 鍩虹鏍峰紡 */
body {
	background: #f5f7fb;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 涓婁紶鍖哄煙瀹瑰櫒 */
.upload-wrapper {
	max-width: 860px;
	margin: 0 auto 0;
	padding: 0 16px;
}

/* 鑻遍泟鍗＄墖 */
.hero-card {
	background: linear-gradient(135deg, var(--theme-strong) 0%, var(--theme) 100%);
	color: #fff;
	border-radius: 14px;
	padding: 14px 18px;
	box-shadow: 0 10px 30px rgba(31,125,216,0.25);
	margin-bottom: 20px;
}

.hero-title {
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 4px;
}

.hero-sub {
	font-size: 14px;
	opacity: 0.9;
	margin: 0;
}

/* 鎷栨嫿涓婁紶鍖哄煙 */
.drop-area {
	background: #fff;
	border: 2px dashed var(--theme);
	border-radius: 16px;
	padding: 18px;
	margin-top: 14px;
	text-align: center;
	position: relative;
	transition: all .2s;
	cursor: pointer;
}

.drop-area:hover {
	box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.drop-area.dragover {
	border-color: var(--theme-strong);
	background: #f0f7ff;
}

.drop-icon {
	font-size: 44px;
	color: var(--theme);
	margin-bottom: 8px;
}

.drop-title {
	font-size: 18px;
	font-weight: 700;
	color: #111;
	margin: 4px 0;
}

.drop-sub {
	color: #6b7280;
	font-size: 13px;
	margin: 0;
}

/* 涓昏鎸夐挳 */
.primary-btn {
	background: linear-gradient(135deg, var(--theme) 0%, var(--theme-strong) 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 12px 20px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(47,122,216,0.35);
	transition: all .2s;
	margin-top: 10px;
}

.primary-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(47,122,216,0.4);
}

.primary-btn:active {
	transform: scale(.98);
}

.primary-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 浠诲姟鍒楄〃 */
.task-list {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.task-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 12px 14px;
	box-shadow: 0 4px 14px rgba(0,0,0,0.05);
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.task-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #e5edff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #2f7ad8;
	flex-shrink: 0;
}

.task-info {
	flex: 1;
	min-width: 0;
}

.task-title {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	margin: 0;
	word-break: break-word;
}

.task-meta {
	font-size: 12px;
	color: #6b7280;
	margin: 2px 0 8px;
}

/* 杩涘害鏉� */
.progress-wrap {
	width: 100%;
	background: #f1f5f9;
	border-radius: 10px;
	height: 12px;
	overflow: hidden;
	position: relative;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(135deg, var(--theme) 0%, var(--theme-strong) 100%);
	border-radius: 10px;
	transition: width .3s ease, background .2s ease;
}

.progress-animate {
	background: linear-gradient(90deg, rgba(47,122,216,0.2), rgba(47,122,216,0.6), rgba(47,122,216,0.2));
	background-size: 200% 100%;
	animation: progressAnim 1.4s linear infinite;
}

@keyframes progressAnim {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* 浠诲姟鐘舵�� */
.task-status {
	margin-top: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #475569;
}

.status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #94a3b8;
}

.status-success .status-dot {
	background: #22c55e;
}

.status-fail .status-dot {
	background: #ef4444;
}

.status-working .status-dot {
	background: #f59e0b;
}

/* 浠诲姟鎿嶄綔鎸夐挳 */
.task-actions {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.link-btn {
	border: none;
	color: #fff;
	border-radius: 12px;
	padding: 9px 16px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(0,0,0,0.08);
	transition: all .3s ease;
	min-width: 96px;
	text-align: center;
	display: inline-block;
}

.link-btn:hover {
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.btn-download {
	background: linear-gradient(135deg, var(--theme) 0%, var(--theme-strong) 100%);
	color: #fff !important;
}

.btn-download:hover {
	background: linear-gradient(135deg, var(--theme-strong) 0%, var(--theme) 100%);
	color: #fff !important;
}

.btn-copy {
	background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
	color: #78350f !important;
}

.btn-copy:hover {
	background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
	color: #78350f !important;
}

/* 妯″紡閫夋嫨鍣� */
.mode-select-wrapper {
	margin-top: 12px;
	text-align: center;
}

.mode-switch {
	display: inline-flex;
	background-color: #e5e7eb;
	border-radius: 99px;
	padding: 5px;
	border: 1px solid #d1d5db;
}

.mode-switch .option {
	padding: 8px 20px;
	border-radius: 99px;
	border: none;
	background-color: transparent;
	color: #374151;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.25s ease-in-out;
	white-space: nowrap;
}

.mode-switch .option.active {
	background-color: var(--theme);
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 閬僵灞� */
.mask-zone {
	width: 100%;
	height: 100%;
	position: absolute;
	background: rgba(97, 160, 255, 0.2);
	top: 0;
	left: 0;
	z-index: 100;
	cursor: pointer;
	transition: all 0.15s;
	border: 3px dashed #61A0FF;
	border-radius: 10px;
}

/* 鍝嶅簲寮忚璁� */
@media (max-width: 768px) {
	.upload-wrapper {
		padding: 0 12px;
	}
	
	.hero-card {
		padding: 12px 16px;
	}
	
	.hero-title {
		font-size: 20px;
	}
	
	.drop-area {
		padding: 16px;
	}
	
	.drop-icon {
		font-size: 40px;
	}
	
	.drop-title {
		font-size: 16px;
	}
}

