* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.bg-slate-50 {
    background: #f8fafc;
}

.bg-white {
    background: #ffffff;
}

.bg-slate-100 {
    background: #f1f5f9;
}

.bg-slate-200 {
    background: #e2e8f0;
}

.bg-blue-600 {
    background: #2563eb;
}

.bg-green-100 {
    background: #dcfce7;
}

.text-white {
    color: #ffffff;
}

.text-slate-400 {
    color: #94a3b8;
}

.text-slate-500 {
    color: #64748b;
}

.text-slate-600 {
    color: #475569;
}

.text-slate-700 {
    color: #334155;
}

.text-slate-800 {
    color: #1e293b;
}

.text-blue-600 {
    color: #2563eb;
}

.text-green-600 {
    color: #16a34a;
}

.text-red-500 {
    color: #ef4444;
}

.min-h-screen {
    min-height: 100vh;
}

.w-full {
    width: 100%;
}

.w-24 {
    width: 6rem;
}

.h-2 {
    height: 0.5rem;
}

.h-24 {
    height: 6rem;
}

.max-w-md {
    max-width: 28rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-8 {
    padding: 2rem;
}

.p-10 {
    padding: 2.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.border {
    border: 1px solid #e2e8f0;
}

.border-t {
    border-top: 1px solid #e2e8f0;
}

.border-slate-200 {
    border-color: #e2e8f0;
}

.rounded-full {
    border-radius: 9999px;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.shadow-xl {
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.overflow-hidden {
    overflow: hidden;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.break-all {
    word-break: break-all;
}

.cursor-pointer {
    cursor: pointer;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-\[10px\] {
    font-size: 10px;
    line-height: 1.4;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.transition {
    transition: all 0.2s ease;
}

.transition-colors {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hover\:bg-slate-200:hover {
    background: #e2e8f0;
}

.hover\:bg-blue-700:hover {
    background: #1d4ed8;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.drop-zone.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

#progressBar {
    transition: width 0.1s ease-out;
}

.hero-icon {
    width: 3rem;
    height: 3rem;
    display: block;
    margin: 0 auto 1rem;
}

.file-name-display {
    display: block;
    width: 100%;
    max-width: 100%;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
}
