:root {
	--bg-primary: #F8FAFB;
	--bg-secondary: #FFFFFF;
	--bg-tertiary: #F1F5F9;
	
	--accent: #0EA5E9;
	--accent-hover: #0284C7;
	--accent-light: #E0F2FE;
	
	--text-primary: #0F172A;
	--text-secondary: #475569;
	--text-muted: #94A3B8;
	
	--border-light: #E2E8F0;
	--border-medium: #CBD5E1;
	
	--radius-full: 999px;
	--radius-lg: 14px;
	--radius-md: 10px;
	
	--space-xs: clamp(0.5rem, 2vw, 0.75rem);
	--space-sm: clamp(0.75rem, 3vw, 1rem);
	--space-md: clamp(1rem, 4vw, 1.5rem);
	--space-lg: clamp(1.5rem, 5vw, 2.5rem);
	--space-xl: clamp(2rem, 6vw, 4rem);
	
	--font-sans: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", 
    "Noto Sans", "Noto Sans CJK SC", "WenQuanYi Micro Hei",
    sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
	
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
	--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
	--shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html{
	font-size:18px;
}

body {
	font-family: var(--font-sans);
	background: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100vh;
	padding: var(--space-lg) var(--space-md);
	line-height: 1.6;
}

.container {
	max-width: 640px;
	margin: 0 auto;
}

.header {
	margin-bottom: var(--space-xl);
}

.keepBtn{
	text-align:center;
}

h1 {
	font-size: clamp(1.75rem, 5vw, 2.25rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	margin-bottom: var(--space-xs);
	color: var(--text-primary);
	text-align:center;
}

.queryDesc {
	color: var(--text-secondary);
	font-size: clamp(0.875rem, 3vw, 0.9375rem);
	border: 1px solid #dedede;
	padding: 8px;
	border-radius: 7px;
}

.search-section {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	margin-bottom: var(--space-lg);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.input-group {
	display: grid;
	gap: var(--space-sm);
}

label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	font-weight: 500;
}

input[type="text"] {
	width: 100%;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	padding: var(--space-sm) var(--space-md);
	color: var(--text-primary);
	font-size: 1rem;
	font-family: var(--font-sans);
	transition: all 0.2s;
	outline: none;
}

input[type="text"]:focus {
	border-color: var(--accent);
	background: var(--bg-secondary);
	box-shadow: 0 0 0 3px var(--accent-light);
}

input[type="text"]::placeholder {
	color: var(--text-muted);
}

.btn {
	width: 100%;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: var(--radius-full);
	padding: var(--space-sm) var(--space-md);
	font-size: 1rem;
	font-weight: 600;
	font-family: var(--font-sans);
	cursor: pointer;
	transition: all 0.2s;
	margin-top: var(--space-sm);
}

.btn:hover {
	background: var(--accent-hover);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn:active {
	transform: translateY(0);
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.result-section {
	display: none;
	animation: slideIn 0.3s ease;
}

.result-section.show {
	display: block;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.card {
	background: var(--bg-secondary);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	margin-bottom: var(--space-md);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--border-light);
}

.card-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: var(--space-md);
	font-weight: 600;
}

.info-grid {
	display: grid;
	gap: var(--space-md);
}

.info-item {
	display: grid;
	gap: 0.25rem;
}

.info-label {
	font-size: 0.8125rem;
	color: var(--text-secondary);
}

.info-value {
	font-size: 0.9375rem;
	color: var(--text-primary);
	font-weight: 500;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--bg-tertiary);
	color: var(--accent);
	border: 1px solid var(--border-medium);
	border-radius: var(--radius-full);
	padding: 0.625rem var(--space-md);
	font-size: 0.875rem;
	font-weight: 500;
	font-family: var(--font-sans);
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
}

.action-btn:hover {
	background: var(--accent-light);
	border-color: var(--accent);
}

.download-btn {
	width: 100%;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: var(--radius-full);
	padding: var(--space-md);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.download-btn:hover {
	background: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.status-badge {
	display: inline-block;
	padding: 0.375rem 0.875rem;
	border-radius: var(--radius-full);
	font-size: 0.8125rem;
	font-weight: 600;
	background: var(--accent-light);
	color: var(--accent);
	border: 1px solid var(--accent);
}

.error-msg {
	background: #FEF2F2;
	color: #DC2626;
	border: 1px solid #FECACA;
	border-radius: var(--radius-md);
	padding: var(--space-md);
	font-size: 0.875rem;
	margin-top: var(--space-md);
	display: none;
}

.error-msg.show {
	display: block;
	animation: slideIn 0.3s ease;
}

.divider {
	height: 1px;
	background: var(--border-light);
	margin: var(--space-md) 0;
}

.icon {
	width: 18px;
	height: 18px;
}