/* 全局样式重置与基础设置 - 科技感改造 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

body {
    /* 科技感深色背景 */
    background-color: #0d1117;
    background-image: 
        linear-gradient(rgba(30, 60, 114, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 60, 114, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 100vh;
    padding-bottom: 60px;
    color: #e6edf3;
}

/* 容器样式 */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部标题区域 - 科技感改造 */
.header {
    text-align: center;
    padding: 40px 0 25px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

.title {
    font-size: 32px;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(148, 163, 184, 0.3);
}

.subtitle {
    font-size: 16px;
    color: #94a3b8;
}

/* 主要内容区域 */
.main-content {
    margin-bottom: 30px;
}

/* 图片上传容器 - 科技感改造 */
.upload-container {
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 0 20px rgba(14, 55, 153, 0.15);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.upload-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

/* 上传提示区域 - 科技感改造 */
.upload-guide {
    text-align: center;
    padding: 40px 0;
}

.icon-camera {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-camera:hover {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.icon-camera .fa-camera {
    font-size: 30px;
    color: #60a5fa;
}

.guide-text {
    font-size: 20px;
    color: #e6edf3;
    font-weight: 500;
    margin-bottom: 10px;
}

.tips {
    font-size: 14px;
    color: #94a3b8;
    max-width: 300px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 图片预览区域 - 科技感改造 */
.image-preview {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    border: 1px dashed rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.preview-img {
    width: 80%;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 图片点击反馈效果 */
.preview-img:hover {
    opacity: 0.9;
    transform: scale(0.995);
}

/* 按钮组样式 - 科技感改造 */
.button-group {
    padding: 5px 0;
}

.btn {
    width: 100%;
    height: 50px;
    line-height: 50px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 按钮光晕效果 */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

/* 选择图片按钮 - 科技感改造 */
.primary-btn {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* 生成Excel按钮 - 科技感改造 */
.success-btn {
    background: linear-gradient(90deg, #10b981, #059669);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-btn:hover {
    background: linear-gradient(90deg, #059669, #065f46);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

/* 加载动画保持不变 */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 功能特点区域 - 科技感改造 */
.features {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
    padding: 0 5px;
}

.feature-item .fa-check-circle {
    font-size: 18px;
    color: #38bdf8;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

.feature-text {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
}

/* 底部广告位 - 科技感改造 */
.ad-container {
    width: 100%;
    padding: 0 0 30px;
}

.ad-text {
    text-align: center;
    color: #64748b;
    margin-top: 10px;
    font-size: 14px;
}



.ad-image {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.ad-image:hover {
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

/* 提示弹窗 - 科技感改造 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e6edf3;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.toast.show {
    opacity: 1;
}

/* 响应式适配保持不变 */
@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }
    
    .features {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-item {
        width: 100%;
    }
}