:root {
    --bg-color: #0c0c0f;
    --text-color: rgba(255, 255, 255, 0.85);
    --accent-color: #64b3ff;
    --container-bg: rgba(40, 40, 45, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --success-color: #30d158;
    --error-color: #ff453a;
    --disabled-color: rgba(255, 255, 255, 0.15);
    --progress-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.2px;
    background: url(https://4kwallpapers.com/images/walls/thumbs_2t/11768.png) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}


.container {
    display: flex;
    max-width: 1400px;
    width: 90%;
    gap: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px) saturate(160%);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(100, 108, 255, 0.15) 0%, 
        rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    animation: liquid 15s infinite alternate;
}

@keyframes liquid {
    0% { transform: translate(0, 0); }
    25% { transform: translate(5%, 5%); }
    50% { transform: translate(-5%, 5%); }
    75% { transform: translate(5%, -5%); }
    100% { transform: translate(-5%, -5%); }
}

.guide-section {
    flex: 1;
    padding: 1rem;
    border-right: 1px solid var(--border-color);
    position: relative;
}

.upload-section {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 0;
}

h1, h2, h3 {
    letter-spacing: -0.4px;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

a {
    color: rgba(255, 255, 255, 0.518);
}

.title-main {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.subtitle-tag {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.3s ease;
}

.subtitle-tag:hover {
    background: rgba(255, 255, 255, 0.12);
}

.upload-box {
    border: 2px dashed var(--accent-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
    will-change: transform;
    background: rgba(0, 0, 0, 0.15);
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    word-break: break-word;
}

.upload-box:hover {
    filter: brightness(1.2);
    border-color: #8acfff;
    transform: scale(1.01);
}


.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.file-label:hover {
    color: #7ac2ff;
}

.file-label svg {
    width: 48px;
    height: 48px;
    stroke: currentColor;
    stroke-width: 2;
}

.file-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

#file-details {
    margin: 1rem 0;
    margin-top: 1rem;
    border-radius: 8px;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    text-align: left;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    max-height: 300px;
    min-height: 120px;
    overflow-y: auto;
    word-break: break-word;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2 ease;
    position: relative;
    padding-bottom: 1rem;
}

#file-details p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

#progress-container {
    width: 100%;
    height: 8px;
    background: var(--progress-bg);
    border-radius: 8px;
    margin: 1rem 0;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #34c759);
    width: 0%;
    transition: width 0.3s ease-out;
}

#progress-text {
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.status {
    margin: 1rem 0;
    min-height: 20px;
    font-size: 0.9rem;
    word-wrap: break-word;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 20px rgba(100, 179, 255, 0.3);
}

.submit-btn:hover {
    background-color: rgba(100, 179, 255, 0.6);
    box-shadow: 0 6px 20px rgba(100, 179, 255, 0.4);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background-color: var(--disabled-color);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.submit-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 16px rgba(100, 179, 255, 0.2);
}

.footer-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-top: 1rem;
}

ol, ul {
    text-align: left;
    padding-left: 1.2rem;
}

li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.tips {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .guide-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 2rem;
    }
    
    #file-details {
        max-height: 200px;
    }
}

#file-details {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
}

/* WebKit (Chrome, Edge, Safari) hidden by default */
#file-details::-webkit-scrollbar {
    width: 8px;
}

#file-details::-webkit-scrollbar-track {
    background: transparent;
}

#file-details::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 8px;
}

/* Show scrollbar only on hover */
#file-details:hover {
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05); /* Firefox */
}

#file-details:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

#file-details:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.container::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 60%);
    animation: floatLight 20s infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatLight {
    0% { transform: translate(0%, 0%); }
    100% { transform: translate(10%, 5%); }
}
