* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 900px;
    background: rgba(0, 5, 20, 0.85);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #74ebd5, #9face6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: #b0e0e6;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.subtitle2 {
    font-size: 0.8rem;
    color: #b0e0e6;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.card {
    background: rgba(15, 30, 60, 0.7);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #74ebd5;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="url"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 16px;
    border: 2px solid rgba(116, 235, 213, 0.4);
    transition: all 0.3s ease;
}

input[type="url"]:focus {
    outline: none;
    border-color: #74ebd5;
    box-shadow: 0 0 0 3px rgba(116, 235, 213, 0.2);
}

button {
    background: linear-gradient(to right, #74ebd5, #9face6);
    color: #0a192f;
    border: none;
    padding: 16px 30px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    background: linear-gradient(to right, #555, #777);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-section {
    margin: 30px 0;
    display: none;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.progress-info {
    display: flex;
    gap: 20px;
}

.progress-info div {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.progress-bar-container {
    height: 22px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #74ebd5, #9face6);
    border-radius: 12px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.result-container {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: rgba(20, 40, 80, 0.8);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #74ebd5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.success-message {
    color: #74ebd5;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
}

.info-card h3 {
    font-size: 0.95rem;
    color: #9face6;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 1.2rem;
    font-weight: 600;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, #74ebd5, #9face6);
    color: #0a192f;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.download-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.instructions {
    margin-top: 35px;
    background: rgba(15, 30, 60, 0.7);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.instructions h2 {
    color: #74ebd6;
    margin-bottom: 20px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: linear-gradient(to right, #74ebd5, #9face6);
    color: #0a192f;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #9face6;
}

.step p {
    color: #b0e0e6;
    line-height: 1.6;
}

footer {
    text-align: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0e0e6;
    font-size: 0.95rem;
}

.task-id {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 25px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .file-info {
        grid-template-columns: 1fr;
    }
    
    .progress-info {
        flex-direction: column;
        gap: 10px;
    }
}






