/* 全局样式 */
* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1360px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

/* 主内容区 */
main {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 2rem;
}

/* 上传区域 */
.upload-container {
	background: white;
	border-radius: 10px;
	padding: 3rem;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
	transition: transform 0.3s ease;
}

.upload-icon {
	font-size: 5rem;
	margin-bottom: 1.5rem;
	color: #667eea;
	cursor: pointer;
	transition: all 0.3s ease;
}

.upload-icon:hover {
	color: #764ba2;
	transform: scale(1.1);
}

.upload-text {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	color: #555;
}

.upload-note {
	font-size: 0.9rem;
	color: #888;
	margin-bottom: 1.5rem;
}

#fileInput {
	display: none;
}

.upload-btn {
	background: #667eea;
	color: white;
	border: none;
	padding: 1rem 4rem;
	border-radius: 30px;
	font-size: 1rem;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
}

.upload-btn:hover {
	background: #764ba2;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 进度条 */
.progress-container {
	margin-top: 2rem;
	display: none;
}

.progress-bar {
	width: 100%;
	height: 10px;
	background: #e9ecef;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea, #764ba2);
	transition: width 0.3s ease;
}

.progress-text {
	font-size: 0.9rem;
	color: #666;
}

/* 文件列表 */
.files-container {
	background: white;
	border-radius: 10px;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
}

.files-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.files-header h2 {
	font-size: 1.5rem;
	color: #333;
}

.clear-btn {
	background: #f8f9fa;
	color: #6c757d;
	border: 1px solid #dee2e6;
	padding: 0.5rem 1rem;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.clear-btn:hover {
	background: #e9ecef;
}

.file-list {
	list-style: none;
}

.file-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border: 1px solid #eee;
	border-radius: 8px;
	margin-bottom: 1rem;
	transition: background-color 0.3s ease;
}

.file-item:hover {
	background-color: #f8f9fa;
}

.file-info {
	display: flex;
	align-items: center;
}

.file-icon {
	font-size: 1.5rem;
	margin-right: 1rem;
	color: #667eea;
}

.file-details h3 {
	font-size: 1.1rem;
	margin-bottom: 0.2rem;
	color: #333;
}

.file-size {
	font-size: 0.9rem;
	color: #666;
}

.file-actions {
	display: flex;
	gap: 0.5rem;
}

.download-btn,
.view-btn {
	background: #667eea;
	color: white;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.download-btn:hover,
.view-btn:hover {
	background: #764ba2;
}

.view-btn {
	background: #28a745;
}

.view-btn:hover {
	background: #218838;
}

/* 步骤指南 */
.steps-container {
	background: white;
	border-radius: 10px;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
}

.steps-container h2 {
	text-align: center;
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: #333;
}

.steps {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.step {
	flex: 1;
	text-align: center;
	position: relative;
	padding: 2rem 1rem;
	background: #f8f9fa;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.step:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-size: 1.5rem;
	font-weight: bold;
	border-radius: 50%;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.step h3 {
	font-size: 1.3rem;
	margin-bottom: 1rem;
	color: #333;
}

.step p {
	color: #666;
	line-height: 1.6;
}

/* 特点介绍 */
.features-container {
	background: white;
	border-radius: 10px;
	padding: 2rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 2rem;
}

.features-container h2 {
	text-align: center;
	font-size: 1.8rem;
	margin-bottom: 2rem;
	color: #333;
}

.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.feature {
	text-align: center;
	padding: 1.5rem;
	background: #f8f9fa;
	border-radius: 10px;
	transition: all 0.3s ease;
}

.feature:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	color: #667eea;
}

.feature h3 {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: #333;
}

.feature p {
	color: #666;
	font-size: 0.9rem;
}

/* 页脚 */
footer {
	box-sizing: border-box;
	width: 100%;
	min-width: 1240px;
	background: #333;
	color: white;
	padding: 3rem 0;
	text-align: center;
}

.footer-content {
	box-sizing: border-box;
	max-width: 1360px;
	width: 100%;
	margin: 0 auto;
	padding: 0 2rem;
}

.footer-info {
	margin-bottom: 2rem;
}

.footer-info h3 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.footer-info p {
	color: #ccc;
	font-size: 15px;
	margin: 0 auto;
	line-height: 1.6;
}

.footer-copyright {
	color: #aaa;
	font-size: 14px;
}

/* 提示框 */
.notice {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: #333;
	color: white;
	padding: 1rem 2rem;
	border-radius: 5px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
	max-width: 500px;
	text-align: center;
}

.notice.show {
	opacity: 1;
}

.notice.success {
	background: #28a745;
}

.notice.error {
	background: #dc3545;
}

.notice.info {
	background: #17a2b8;
}

/* 预览模态框 */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1001;
}

.modal-content {
	background: white;
	margin: 5% auto;
	padding: 2rem;
	border-radius: 10px;
	width: 80%;
	max-width: 1000px;
	max-height: 80vh;
	overflow: auto;
	position: relative;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.modal-title {
	font-size: 1.5rem;
	color: #333;
}

.modal-close {
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
	background: none;
	border: none;
	transition: color 0.3s ease;
}

.modal-close:hover {
	color: #333;
}

.modal-body {
	padding: 1rem 0;
}

.code-preview {
	background: #f8f9fa;
	padding: 1rem;
	border-radius: 5px;
	overflow-x: auto;
	white-space: pre-wrap;
	font-family: 'Courier New', Courier, monospace;
	max-height: 60vh;
}