/* 公平竞争审查在线工具样式 */

/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 头部样式 */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-info {
    font-size: 0.9rem;
}

/* 上传区域样式 */
#upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    cursor: pointer;
}

#upload-area:hover, #upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

/* 文件信息样式 */
#file-info {
    transition: all 0.3s ease;
}

/* 审查按钮样式 */
#review-btn {
    transition: all 0.3s ease;
    min-width: 180px;
}

#review-btn:disabled {
    cursor: not-allowed;
}

/* 加载动画样式 */
#loading {
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 审查结果样式 */
.issue-item {
    transition: transform 0.2s ease;
    border-left: 4px solid var(--warning-color);
}

.issue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.issue-quote {
    font-style: italic;
    color: #555;
    background-color: rgba(0, 0, 0, 0.03);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #upload-area {
        padding: 2rem !important;
    }
    
    .display-1 {
        font-size: 3rem;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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

/* 按钮处理中状态 */
.btn-apple-processing {
    background-color: #8eb8e5 !important;
    cursor: not-allowed;
    opacity: 0.8;
    position: relative;
    overflow: hidden;
}

.btn-apple-processing:after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 进度条动画 */
.progress-apple {
    background-color: rgba(0, 113, 227, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar-apple {
    position: relative;
    background: linear-gradient(90deg, #0071e3, #42a4ff);
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
    animation: pulse 2s infinite;
    will-change: width;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 113, 227, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 113, 227, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 113, 227, 0.5);
    }
}

/* 进度消息样式 */
.progress-message {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    letter-spacing: -0.2px;
    transition: all 0.3s ease;
    margin: 15px 0;
    text-align: center;
}

/* 加载容器样式 */
.loading-container {
    padding: 25px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    margin: 25px 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.progress-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

/* 确保图像在所有浏览器中正常显示 */
img {
    max-width: 100%;
    height: auto;
    -ms-interpolation-mode: bicubic; /* 适用于IE */
}

/* 修复360浏览器下的图标显示问题 */
.bi {
    display: inline-block;
    vertical-align: -0.125em;
}

/* 确保Bootstrap图标在不同浏览器中正常显示 */
@supports (-webkit-mask-image: none) or (mask-image: none) {
    .bi::before {
        display: block;
    }
}

/* 通用浏览器兼容性修复 */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
} 