* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 10%,
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.1) 70%,
        transparent 90%
    );
    animation: flowLight 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        transparent 10%,
        rgba(255, 255, 255, 0.08) 30%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.08) 70%,
        transparent 90%
    );
    animation: flowLight 12s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
}

/* 增强流光效果，添加模糊和更明显的亮度 */
body::before,
body::after {
    filter: blur(1.5px);
    opacity: 1;
}

/* 在容器上添加额外的流光效果，让整个页面都有流光 */
.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        60deg,
        transparent 10%,
        rgba(255, 255, 255, 0.15) 35%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 65%,
        transparent 90%
    );
    animation: flowLightContainer 10s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
    filter: blur(1px);
}

@keyframes flowLight {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes flowLightContainer {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    justify-content: center;
}

.upload-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    position: relative;
    z-index: 1;
    flex: 0 0 600px;
    max-width: 600px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 300;
}

.upload-form {
    padding: 40px 30px;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f4ff;
}

.form-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e1e8ed, transparent);
    margin: 30px 0;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.required {
    color: #ff4757;
    margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 6px;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    font-weight: 500;
}

.file-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.file-label svg {
    flex-shrink: 0;
}

.file-info {
    margin-top: 15px;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #495057;
}

.file-details span {
    display: flex;
    align-items: center;
}

.file-details strong {
    color: #333;
    margin-right: 8px;
    min-width: 60px;
}

.btn-upload {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.btn-upload:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-upload:active:not(:disabled) {
    transform: translateY(0);
}

.btn-upload:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: inline-block;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* PC端侧边栏样式 */
.result-sidebar {
    flex: 0 0 350px;
    position: sticky;
    top: 20px;
    animation: fadeIn 0.5s ease-out;
}

.result-container {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-success {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 10px;
    color: white;
}

.result-success svg {
    margin-bottom: 15px;
    stroke: white;
}

.result-success h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.result-url {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    word-break: break-all;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    margin-top: 15px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: white;
    color: #11998e;
}

.result-error {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%);
    border-radius: 10px;
    color: white;
}

.result-error svg {
    margin-bottom: 15px;
    stroke: white;
}

.result-error h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.error-message {
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

/* 手机端弹窗样式 */
.result-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.result-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.result-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
    z-index: 1001;
    box-sizing: border-box;
    margin: 0;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.result-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e1e8ed;
}

.result-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.result-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-modal-close:hover {
    color: #333;
}

.result-modal-body {
    padding: 24px;
    text-align: center;
}

.result-success-modal svg,
.result-error-modal svg {
    margin-bottom: 15px;
    stroke: currentColor;
}

.result-success-modal {
    color: #11998e;
}

.result-error-modal {
    color: #ee0979;
}

.result-url-modal {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    word-break: break-all;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    color: #333;
}

.error-message-modal {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
}

.btn-copy-modal {
    margin-top: 15px;
    padding: 10px 24px;
    background: #11998e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy-modal:hover {
    background: #0d7a6e;
}

.result-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    justify-content: flex-end;
}

.result-modal-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        overflow-x: hidden;
    }

    html {
        overflow-x: hidden;
    }

    .container {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }

    .result-sidebar {
        display: none !important;
    }

    .upload-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .result-modal-content {
        width: calc(100% - 40px);
        max-width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }

    .card-header {
        padding: 30px 20px;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
    
    .upload-form {
        padding: 30px 20px;
    }
    
    .file-details {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .card-header {
        padding: 30px 20px;
    }
    
    .card-header h1 {
        font-size: 24px;
    }
    
    .upload-form {
        padding: 30px 20px;
    }
    
    .file-details {
        font-size: 12px;
    }
}

