/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

/* 头部按钮在深色背景下的样式 */
.header .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

.header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-icon {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1px;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 英雄区 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 盾牌动画 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-animation {
    position: relative;
    width: 300px;
    height: 300px;
}

.shield-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.shield-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.ring-2 {
    width: 180px;
    height: 180px;
    animation-delay: 1s;
}

.ring-3 {
    width: 240px;
    height: 240px;
    animation-delay: 2s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 特色功能区 */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-desc {
    color: #6b7280;
    line-height: 1.7;
}

/* 使用流程 */
.workflow {
    padding: 5rem 0;
    background: white;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.step-desc {
    color: #6b7280;
    line-height: 1.6;
}

/* CTA区域 */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-desc {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.link-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.link-list {
    list-style: none;
}

.link-list li {
    margin-bottom: 0.5rem;
}

.link-list a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-list a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    opacity: 0.7;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 🚨 关键修复：隐藏时不阻挡点击 */
    display: none; /* 🚨 关键修复：默认完全隐藏 */
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto; /* 🚨 激活时恢复点击 */
    display: block; /* 🚨 激活时显示 */
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
}

.modal-close:hover {
    color: #1f2937;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* 表单样式 */
.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.verification-group {
    position: relative;
}

.verification-input {
    display: flex;
    gap: 8px;
}

.verification-input input {
    flex: 1;
}

.countdown-text {
    font-size: 12px;
    color: #f59e0b;
    margin-top: 4px;
}

.modal-switch {
    text-align: center;
    margin-top: 1rem;
    color: #6b7280;
}

.modal-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

/* 仪表板样式 */
.dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.dashboard-header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.dashboard-header h1 {
    margin: 0;
    color: #1f2937;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin: 0 0 10px 0;
    color: #1f2937;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.action-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.files-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.file-info h4 {
    margin: 0 0 5px 0;
    color: #1f2937;
}

.file-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.file-actions .btn-analyze {
    background: #3b82f6;
}

.file-actions .btn-delete {
    background: #ef4444;
}

.file-actions button:hover {
    transform: translateY(-1px);
}

/* 上传页面样式 */
.upload-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.upload-header {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.upload-area {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: #667eea;
    background-color: #f8fafc;
}

.upload-zone.dragover {
    border-color: #667eea;
    background-color: #f0f9ff;
}

.upload-icon {
    font-size: 4em;
    margin-bottom: 20px;
    color: #6b7280;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.message.show {
    transform: translateX(0);
}

.message-success {
    background: #10b981;
}

.message-error {
    background: #ef4444;
}

.message-warning {
    background: #f59e0b;
}

.message-info {
    background: #3b82f6;
}

/* 修复文件操作按钮样式 */
.btn-download {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-analyze {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-analyze:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.btn-delete-protected {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-protected:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* 修复小按钮样式 - 使用 !important 确保优先级 */
.btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
}

.btn-large {
    padding: 16px 32px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}

/* 确保btn-outline样式正确 - 使用 !important 确保优先级 */
.btn-outline {
    background: transparent !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* SO文件列表样式 */
.so-file-item {
    transition: all 0.2s ease;
}

.so-file-item:hover {
    background: #f3f4f6;
    border-color: #667eea;
}

.so-file-item input[type="checkbox"] {
    min-width: 16px;
    min-height: 16px;
}

/* 修复仪表板布局 */
.dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px;
}

.dashboard-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    margin: 0;
    color: #1f2937;
    font-size: 2em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.action-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.files-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* 修复文件列表按钮组 */
.file-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.file-actions .btn {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 4px;
}

/* 修复上传页面布局 */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
}

.upload-header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.upload-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.upload-header h1 {
    margin: 0;
    color: #1f2937;
    font-size: 1.8em;
}

.upload-header p {
    color: #6b7280;
    margin: 0;
    font-size: 1em;
}

.upload-area {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.upload-zone {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.upload-zone #selectFileBtn {
    margin-top: 20px;
    margin-bottom: 20px;
}

.upload-zone h3 {
    margin: 20px 0 10px 0;
    color: #1f2937;
    font-size: 1.4em;
}

.upload-zone p {
    color: #6b7280;
    margin: 0 0 20px 0;
    font-size: 1em;
}

/* 确保文件输入框完全隐藏 */
input[type="file"] {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* 加固配置页面响应式样式 */
@media (max-width: 768px) {
    .config-content {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .config-header .header-content {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .config-header .header-actions {
        width: 100% !important;
        justify-content: stretch !important;
    }

    .config-header .header-actions .btn {
        flex: 1 !important;
    }

    .so-files-panel {
        max-height: none !important;
    }

    .so-files-list {
        max-height: 300px !important;
    }

    .controls-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .control-buttons {
        justify-content: center !important;
    }

    .action-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .action-buttons .btn {
        width: 100% !important;
    }
}

/* SO文件列表项样式优化 */
.so-file-item {
    transition: all 0.2s ease !important;
}

.so-file-item:hover {
    background: #f3f4f6 !important;
    border-color: #667eea !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.so-file-item:active {
    transform: translateY(0) !important;
}

.so-file-item input[type="checkbox"]:checked + div {
    background: #f0f9ff !important;
}

/* 架构标签样式 */
.arch-badge {
    font-size: 11px !important;
    background: #667eea !important;
    color: white !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* 滚动条样式优化 */
.so-files-list::-webkit-scrollbar {
    width: 6px;
}

.so-files-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.so-files-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.so-files-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 保护选项项目样式优化 */
.protection-option-item {
    transition: all 0.2s ease !important;
}

.protection-option-item:hover {
    background: #c6f6d5 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* 平板设备样式 */
@media (min-width: 769px) and (max-width: 1024px) {
    .config-content {
        gap: 15px !important;
    }

    .so-files-panel {
        max-height: 60vh !important;
    }

    .so-file-item {
        padding: 12px !important;
    }
}

/* ========== 加固配置页面全新样式 ========== */

.protection-config-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.config-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面头部 */
.config-header {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-info h1 {
    margin: 0;
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-info p {
    color: #6b7280;
    margin: 8px 0 0 0;
    font-size: 16px;
    word-break: break-all;
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* 主要内容区域 - 使用更兼容的布局 */
.config-content {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 25px;
    border-spacing: 10px;
}

.protection-options-panel,
.so-files-panel {
    display: table-cell;
    width: 50%;
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    vertical-align: top;
}

.protection-options-panel h2,
.so-files-panel h2 {
    margin: 0 0 25px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

/* 安全提示 */
.security-notice,
.so-notice {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #10b981;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 25px;
}

.so-notice {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

.security-notice p,
.so-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.security-notice p {
    color: #065f46;
}

.so-notice p {
    color: #991b1b;
}

/* 保护选项列表 */
.protection-options-list .protection-option-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 18px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #10b981;
    border-radius: 10px;
    min-height: 50px;
    transition: all 0.3s ease;
    cursor: default;
}

.protection-option-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
}

.protection-option-item input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.protection-option-item span:first-of-type {
    color: #374151;
    font-weight: 600;
    flex: 1;
    font-size: 15px;
}

.forced-badge {
    background: #10b981;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SO文件列表 */
.so-files-list {
    height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    padding: 15px;
}

.so-files-list::-webkit-scrollbar {
    width: 8px;
}

.so-files-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.so-files-list::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

.so-files-list::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.so-file-item {
    margin-bottom: 12px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.so-file-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.so-file-item label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    margin: 0;
    width: 100%;
}

.so-file-item input[type="checkbox"] {
    margin-right: 15px;
    margin-top: 3px;
    transform: scale(1.1);
}

.so-file-info {
    flex: 1;
    min-width: 0;
}

.so-file-name {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.so-file-name > span:first-child {
    font-weight: 700;
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    word-break: break-all;
}

.arch-badge {
    background: #10b981;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
}

/* SO文件分组样式 */
.so-file-group {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.so-file-group:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* 分组头部 */
.group-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.group-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.group-checkbox {
    transform: scale(1.2);
    accent-color: #667eea;
}

.group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}

.group-name {
    font-weight: 700;
    color: #1f2937;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
}

.group-badge {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.group-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.group-stats .stat-info {
    font-size: 11px;
    color: #6b7280;
    font-family: 'Consolas', 'Monaco', monospace;
    white-space: nowrap;
}

/* 分组变体列表 */
.group-variants {
    background: white;
    padding: 12px 20px;
}

.so-file-variant {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.so-file-variant:last-child {
    margin-bottom: 0;
}

.so-file-variant:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.variant-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px 15px;
    margin: 0;
    width: 100%;
}

.variant-checkbox {
    margin-right: 12px;
    margin-top: 3px;
    transform: scale(1.05);
    accent-color: #10b981;
}

.variant-info {
    flex: 1;
    min-width: 0;
}

.variant-name {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
}

.file-name {
    font-weight: 600;
    color: #374151;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.variant-details {
    font-size: 11px;
    color: #6b7280;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.4;
}

.variant-details div {
    margin-bottom: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .group-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .group-stats {
        align-items: flex-start;
    }

    .variant-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .group-stats .stat-info {
        white-space: normal;
    }
}

.so-file-details {
    font-size: 12px;
    color: #6b7280;
    font-family: 'Consolas', 'Monaco', monospace;
    line-height: 1.5;
}

.so-file-details div {
    margin-bottom: 3px;
}

/* 无文件状态 */
.no-files {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-files-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-files p {
    font-size: 16px;
    margin: 0;
}

/* 控制按钮区域 */
.so-files-controls {
    border-top: 2px solid #e5e7eb;
    padding-top: 20px;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.selected-count {
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* 底部操作按钮 */
.config-actions {
    background: white;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .config-content {
        display: block;
    }

    .protection-options-panel,
    .so-files-panel {
        display: block;
        width: 100%;
        margin-bottom: 20px;
    }

    .so-files-list {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .protection-config-page {
        padding: 15px;
    }

    .config-header {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: stretch;
    }

    .header-actions .btn {
        flex: 1;
    }

    .protection-options-panel,
    .so-files-panel {
        padding: 15px;
    }

    .header-info h1 {
        font-size: 24px;
    }

    .so-files-list {
        height: 250px;
    }

    .controls-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .control-buttons {
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* 页面过渡动画 */
#app {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition-out {
    opacity: 0;
    transform: translateY(-10px);
}

.page-transition-in {
    opacity: 1;
    transform: translateY(0);
}

/* 页面加载动画 */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.page-loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.loading-content {
    background: white;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.page-loading-overlay.show .loading-content {
    transform: scale(1);
}

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.page-loading-overlay h3 {
    margin: 20px 0 10px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 确保所有按钮都有一致的基础样式 */
button.btn {
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
}

button.btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ========== 加固进度页面样式 ========== */

/* 基础进度页面样式 */
.protection-progress-page,
.protection-completed-page,
.protection-failed-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.progress-container,
.completed-container,
.failed-container {
    max-width: 900px;
    margin: 0 auto;
}

.progress-card,
.completed-card,
.failed-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

/* 进度页面特有样式 */
.progress-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.progress-icon {
    font-size: 64px;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #667eea;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

.progress-title {
    margin: 0 0 30px 0;
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
}

.progress-info {
    margin: 20px 0 30px 0;
}

.progress-detail {
    color: #374151;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.progress-tip {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-active {
    opacity: 1;
}

.step-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.step-text {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.step-active .step-text {
    color: #374151;
}

/* 进度条和加载动画 */
.progress-bar-container {
    margin: 30px 0;
    text-align: left;
}

.progress-info-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-text {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.progress-percentage {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

.progress-bar {
    background: #f3f4f6;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.stat-item {
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* 加载动画 */
.loading-spinner {
    margin: 20px auto;
    width: 50px;
    height: 50px;
    position: relative;
}

.spinner-circle {
    width: 100%;
    height: 100%;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 流程步骤 */
.process-flow {
    margin: 40px 0;
    text-align: left;
}

.flow-step {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-pending {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    opacity: 0.6;
}

.step-active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.step-completed {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-pending .step-number {
    background: #e5e7eb;
    color: #6b7280;
}

.step-active .step-number {
    background: #667eea;
    color: white;
}

.step-completed .step-number {
    background: #10b981;
    color: white;
}

.step-info {
    flex: 1;
}

.step-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 14px;
    color: #6b7280;
}

.progress-footer {
    margin-top: 30px;
}

.process-tips {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tip-item {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
    border: 1px solid #e2e8f0;
}

/* ========== 完成页面样式 ========== */

.protection-completed-page {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.success-animation {
    position: relative;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 80px;
    line-height: 1;
    position: relative;
    z-index: 2;
    animation: successBounce 1s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0;
}

.particle:nth-child(1) {
    animation: particleFly 1.5s ease-out 0.2s;
    top: 50%;
    left: 50%;
}

.particle:nth-child(2) {
    animation: particleFly 1.5s ease-out 0.4s;
    top: 30%;
    left: 70%;
}

.particle:nth-child(3) {
    animation: particleFly 1.5s ease-out 0.6s;
    top: 70%;
    left: 30%;
}

.particle:nth-child(4) {
    animation: particleFly 1.5s ease-out 0.8s;
    top: 20%;
    left: 20%;
}

.particle:nth-child(5) {
    animation: particleFly 1.5s ease-out 1s;
    top: 80%;
    left: 80%;
}

.particle:nth-child(6) {
    animation: particleFly 1.5s ease-out 1.2s;
    top: 40%;
    left: 60%;
}

@keyframes particleFly {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx, 100px), var(--ty, -100px)) scale(1);
        opacity: 0;
    }
}

.completed-header {
    margin-bottom: 30px;
}

.completed-title {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
}

.completed-subtitle {
    color: #6b7280;
    font-size: 18px;
    margin: 0;
}

.warning-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-content h3 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 16px;
}

.warning-content p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
}

.protection-report {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.report-title {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 600;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.report-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.report-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.report-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

.protection-features {
    margin: 30px 0;
}

.features-title {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.feature-item {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    border: 1px solid #bfdbfe;
}

.feature-icon {
    font-size: 16px;
}

/* ========== 失败页面样式 ========== */

.protection-failed-page {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.error-animation {
    position: relative;
    margin-bottom: 30px;
}

.error-icon {
    font-size: 80px;
    line-height: 1;
    position: relative;
    z-index: 2;
    animation: errorShake 0.5s ease-in-out;
}

.error-shake {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid #ef4444;
    border-radius: 50%;
    animation: errorPulse 2s infinite;
    opacity: 0.3;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes errorPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
}

.failed-header {
    margin-bottom: 30px;
}

.failed-title {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
}

.failed-subtitle {
    color: #6b7280;
    font-size: 18px;
    margin: 0;
}

.error-details {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #f87171;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.error-icon-big {
    font-size: 32px;
    flex-shrink: 0;
}

.error-content h3 {
    margin: 0 0 10px 0;
    color: #dc2626;
    font-size: 18px;
}

.error-message {
    margin: 0;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.troubleshooting {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.troubleshooting-title {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.troubleshooting-list {
    display: grid;
    gap: 15px;
}

.trouble-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.trouble-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.trouble-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.help-section {
    margin: 30px 0;
}

.help-title {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.help-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.help-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.help-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.help-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.help-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

/* 按钮样式优化 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 8px;
}

.btn-text {
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .protection-progress-page,
    .protection-completed-page,
    .protection-failed-page {
        padding: 15px;
    }

    .progress-card,
    .completed-card,
    .failed-card {
        padding: 25px;
    }

    .progress-title,
    .completed-title,
    .failed-title {
        font-size: 24px;
    }

    .process-steps {
        max-width: 300px;
    }

    .step-text {
        font-size: 11px;
    }

    .report-grid,
    .features-grid,
    .help-options {
        grid-template-columns: 1fr;
    }

    .progress-stats {
        flex-direction: column;
        gap: 10px;
    }

    .process-tips {
        flex-direction: column;
        align-items: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .error-details {
        flex-direction: column;
        text-align: center;
    }
}

/* 下载码输入弹框样式 */
.download-code-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.download-code-modal {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.download-code-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.download-code-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.download-code-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.download-code-modal-body {
    padding: 24px 24px 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.download-code-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
}

.download-code-notice::before {
    content: "⚠️";
    position: absolute;
    top: -10px;
    left: 16px;
    font-size: 20px;
    background: #f59e0b;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.download-code-notice-title {
    color: #92400e;
    font-size: 16px;
    font-weight: 600;
    margin: 4px 0 8px 0;
    text-align: center;
}

.download-code-notice-text {
    color: #78350f;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.download-code-features {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.download-code-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    color: #0c4a6e;
    font-size: 14px;
}

.download-code-feature-icon {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.download-code-input-group {
    margin-bottom: 20px;
}

.download-code-input-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.download-code-input {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.download-code-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.download-code-input::placeholder {
    color: #9ca3af;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.download-code-modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.download-code-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-code-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-code-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.download-code-btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.download-code-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.download-code-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 响应式设计 */
@media (max-width: 640px) {
    .download-code-modal {
        width: 95%;
        margin: 20px;
    }

    .download-code-modal-header {
        padding: 20px;
    }

    .download-code-modal-body {
        padding: 24px 20px 20px;
    }

    .download-code-notice {
        padding: 16px;
    }

    .download-code-features {
        padding: 16px;
    }

    .download-code-input {
        padding: 14px;
        font-size: 14px;
    }

    .download-code-modal-footer {
        padding: 0 20px 20px;
        flex-direction: column;
    }

    .download-code-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
