body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #00a651 0%, #008c44 100%);
    padding: 2rem 0;
    text-align: center;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.upload-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.file-input-container {
    margin-bottom: 2rem;
}

.file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #00a651;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    font-size: 1.1rem;
}

.file-label:hover {
    background-color: #008c44;
    transform: translateY(-1px);
}

.upload-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

#fileInput {
    display: none;
}

.selected-file-name {
    display: block;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.file-info {
    margin: 1.5rem 0;
    color: #666;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
}

.file-info p {
    margin: 0.5rem 0;
}

.upload-button-container {
    margin-top: 2rem;
}

.button {
    padding: 0.75rem 2rem;
    background-color: #00a651;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    min-width: 200px;
}

.button:hover:not(:disabled) {
    background-color: #008c44;
    transform: translateY(-1px);
}

.button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    margin-top: 1rem;
    color: #666;
}

/* 进度条样式 */
.progress-container {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: #a8e6cf; /* 浅绿色 */
    width: 0;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 12px;
    font-weight: bold;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
}

.popup-content h3 {
    color: #00a651;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.link-container {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

#fileLink {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background-color: #f8f9fa;
}

.copy-button {
    padding: 0.75rem 1rem;
    background-color: #00a651;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-button:hover {
    background-color: #008c44;
}

.close-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-top: 1.5rem;
    background-color: #f5f7fa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    transition: background-color 0.3s;
    font-size: 1rem;
}

.close-button:hover {
    background-color: #e9ecef;
}

.footer {
    background-color: #f8f9fa;
    padding: 1.5rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e9ecef;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .upload-card {
        padding: 1.5rem;
    }

    .link-container {
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }

    .button {
        width: 100%;
        min-width: auto;
    }
}