.parser-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.parser-container .qrcode-body {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-left: 4px solid #667eea;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

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

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-right: 12px;
    border-radius: 2px;
}

.input-group {
    margin-bottom: 20px;
}

.btn-container {
    display: flex;
    justify-content: center;
}

.input-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

.input-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    width: auto;
    min-width: 200px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin: 0 auto;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 输入容器样式 */
.input-container {
    display: flex;
    gap: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    padding: 0 0 0 16px;
}

.input-icon {
    margin-right: 12px;
    color: #ff6b35;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-text {
    flex: 1;
    padding: 16px 20px 16px 0;
    border: none;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
    color: #333;
    outline: none;
}

.clear-input-btn {
    padding: 10px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin-right: 10px;
}

.clear-input-btn:hover {
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 4px;
}

.clear-input-btn:active {
    transform: scale(0.95);
}

.input-text::placeholder {
    color: #9ca3af;
}

.btn-parse {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    white-space: nowrap;
}

.btn-parse:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
    background: #ff8c61;
}

.btn-parse:active {
    transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .input-wrapper {
        padding: 0 16px;
        border-radius: 8px;
    }
    
    .btn-parse {
        padding: 14px 32px;
        border-radius: 8px;
        justify-content: center;
    }
}

.result-card {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.result-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.result-content .result-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.result-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    display: flex;
    flex-direction: column;
}

.result-item.full-width {
    grid-column: 1 / -1;
}

.result-label {
    font-size: 12px;
    color: #718096;
    margin-bottom: 5px;
    font-weight: 500;
}

.result-value {
    font-size: 14px;
    color: #2d3748;
    word-break: break-all;
}

.btn-download {
    width: auto;
    min-width: 160px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.image-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-item:hover {
    transform: scale(1.05);
}

.image-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 移动端图片网格适配 */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
        margin-top: 10px;
    }
    
    .image-item {
        aspect-ratio: 3/4;
    }
}

.loading {
    text-align: center;
    padding: 20px;
    color: #718096;
}

.error {
    padding: 15px;
    background: #fed7d7;
    color: #c53030;
    border-radius: 8px;
    border-left: 4px solid #fc8181;
}

/* 下载管理部分样式 */
#downloadCard {
    margin-top: 30px;
}

.download-list {
    min-height: 200px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.download-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.download-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f7fafc;
}

.download-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.download-thumbnail:hover img {
    transform: scale(1.05);
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.download-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4299e1 0%, #667eea 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.download-status {
    font-size: 12px;
    color: #718096;
    transition: color 0.3s;
}

.download-status.completed {
    color: #48bb78;
}

.download-status.error {
    color: #f56565;
}

.download-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.download-item:hover .download-actions {
    opacity: 1;
}

.btn-icon {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.btn-open:hover {
    border-color: #4299e1;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.2);
}

.btn-delete:hover {
    border-color: #f56565;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.2);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #718096;
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.empty-state:hover svg {
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 客服二维码样式 */
.qrcode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.qrcode-box {
    background-color: white;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

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

.qrcode-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.qrcode-body {
    padding: 25px;
    text-align: center;
}

.qrcode-body p {
    margin: 15px 0 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.qrcode-image {
    width: 280px;
    height: 280px;
    margin: 0 auto 15px;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    border-radius: 8px;
}

.qrcode-footer {
    padding: 15px 25px 25px;
    text-align: center;
}

.qrcode-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* 用户状态样式 */
.user-status {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease-out;
}

.user-status.key-active {
    background: rgba(72, 187, 120, 0.1);
    border-left: 4px solid #48bb78;
}

.user-status.free {
    background: rgba(246, 150, 33, 0.1);
    border-left: 4px solid #ed8936;
}

.status-label {
    font-weight: 500;
    color: #4a5568;
}

.status-value {
    color: #2d3748;
    flex: 1;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .parser-container {
        padding: 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .result-content {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .download-thumbnail {
        width: 100%;
        height: 120px;
    }
    
    .download-info {
        width: 100%;
    }
    
    .download-actions {
        width: 100%;
        justify-content: flex-end;
        opacity: 1;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

