/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 全局样式 */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(77, 171, 247, 0.05);
    animation: float 20s infinite linear;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 70%;
    animation-delay: -10s;
}

.circle-4 {
    width: 250px;
    height: 250px;
    top: 70%;
    left: 10%;
    animation-delay: -15s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

.app-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 头部样式 */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    animation: fadeInDown 0.8s ease;
}

.header-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(77, 171, 247, 0.3);
}

.logo i {
    font-size: 1.8rem;
    color: white;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.2rem;
    color: #7f8c8d;
    font-weight: 300;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 卡片样式 */
.upload-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.upload-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon i {
    font-size: 1.2rem;
    color: white;
}

.card-header h2 {
    font-size: 1.6rem;
    color: #495057;
    font-weight: 600;
}

/* 认证区域 */
.auth-section, .upload-section {
    padding: 30px;
}

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

label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 8px;
    font-weight: 500;
}

label i {
    color: #4dabf7;
}

input {
    width: 100%;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

input:focus {
    outline: none;
    border-color: #4dabf7;
    box-shadow: 0 0 0 3px rgba(77, 171, 247, 0.2);
    background: white;
}

/* 按钮样式 */
.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #339af0 0%, #228be6 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 154, 240, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.upload-btn {
    margin-top: 20px;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 171, 247, 0.1), transparent);
    transition: left 0.5s;
}

.upload-area:hover::before {
    left: 100%;
}

.upload-area:hover {
    border-color: #4dabf7;
    background: rgba(77, 171, 247, 0.05);
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon i {
    font-size: 4rem;
    color: #4dabf7;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 10px;
}

.upload-area p {
    color: #6c757d;
}

#fileInput {
    display: none;
}

/* 文件信息 */
.file-info {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.file-info.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.file-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.value {
    font-weight: 500;
    color: #495057;
}

/* 进度条 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #40c057, #4dabf7);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    z-index: 1;
    background-size: 20px 20px;
    animation: move 1s linear infinite;
    overflow: hidden;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

.progress-text {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    min-width: 40px;
}

/* 图片预览 */
.image-preview {
    margin-top: 20px;
    text-align: center;
    display: none;
}

.image-preview.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.file-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 成功消息 */
.success-message {
    margin-top: 20px;
    padding: 25px;
    background: #d3f9d8;
    border: 1px solid #40c057;
    border-radius: 12px;
    display: none;
    text-align: center;
    animation: bounceIn 0.6s ease;
}

.success-message.active {
    display: block;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    margin-bottom: 15px;
}

.success-icon i {
    font-size: 3rem;
    color: #40c057;
}

.success-message h3 {
    color: #2b8a3e;
    margin-bottom: 20px;
}

.file-url-container {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c0ebc5;
}

.file-url {
    word-break: break-all;
    margin-bottom: 15px;
    color: #495057;
    font-size: 0.95rem;
}

.copy-btn {
    width: 100%;
}

/* 特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4dabf7, #40c057);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4dabf7 0%, #339af0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #495057;
    margin-bottom: 15px;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* 页脚 */
.app-footer {
    text-align: center;
    padding: 30px 0;
    color: #7f8c8d;
    margin-top: 40px;
    font-size: 0.9rem;
    animation: fadeIn 0.8s ease 0.4s both;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .upload-card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 20px;
    }
    
    .auth-section, .upload-section {
        padding: 20px;
    }
    
    .file-details {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
}