* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f5f5;
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    transition: grid-template-columns 0.3s ease;
}

/* 普通用户模式：保持布局一致，左侧边栏内容为空 */

.app-shell.sidebar-collapsed {
    grid-template-columns: 60px 1fr 320px;
}

.app-shell.right-sidebar-collapsed {
    grid-template-columns: 320px 1fr 60px;
}

.app-shell.sidebar-collapsed.right-sidebar-collapsed {
    grid-template-columns: 60px 1fr 60px;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.right-sidebar {
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-toggle {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    z-index: 10;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
}

.sidebar-toggle i {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar-toggle.right-toggle {
    right: auto;
    left: -15px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.sidebar-toggle.right-toggle:hover {
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.5);
}

.sidebar-content {
    padding: 20px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
}

.sidebar.collapsed .sidebar-content > * {
    visibility: hidden;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.15);
}

.brand .logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    flex-shrink: 0;
}

.brand .meta {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.brand .meta .title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand .meta .desc {
    color: #7f8c8d;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 12px;
}

.panel-title i {
    color: #4caf50;
}

.refresh-btn {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.file-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 45vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(76, 175, 80, 0.3) transparent;
}

.file-list::-webkit-scrollbar {
    width: 6px;
}

.file-list::-webkit-scrollbar-track {
    background: transparent;
}

.file-list::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.3);
    border-radius: 3px;
}

.file-list::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.5);
}

.file-item {
    border: 2px solid #e7eef6;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.file-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.file-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.4);
}

.file-item:hover::before {
    transform: scaleY(1);
}

.file-item.active {
    border-color: rgba(76, 175, 80, 0.8);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(102, 187, 106, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.file-item.active::before {
    transform: scaleY(1);
}

.file-item .name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 4px;
    line-height: 1.4;
}

.file-item .sub {
    color: #7f8c8d;
    font-size: 11px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.upload-area {
    border: 2px dashed #d0d9e6;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(46, 204, 113, 0.05) 100%);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.upload-area:hover {
    border-color: #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(46, 204, 113, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.15);
}

.upload-area:hover::before {
    animation: shine 1.5s ease;
    opacity: 1;
}

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

.upload-area.drag-over {
    border-color: #2ecc71;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15) 0%, rgba(102, 126, 234, 0.1) 100%);
    transform: scale(1.02);
}

.upload-area .hint {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.upload-area .hint .h1 {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-area .hint .h1 i {
    color: #4caf50;
    font-size: 16px;
}

.upload-area .hint .h2 {
    color: #7f8c8d;
    font-size: 11px;
}

.upload-btn {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 204, 113, 0.4);
}

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

.status-line {
    margin-top: 12px;
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    padding: 8px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.status-line.success {
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.status-line.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.main {
    padding: 30px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

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

.current-file-badge {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
    animation: slideDown 0.4s ease;
}

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

.current-file-badge i {
    color: #4caf50;
    font-size: 18px;
}

.current-file-badge .label {
    color: #7f8c8d;
    font-size: 13px;
    font-weight: 500;
}

.current-file-badge .filename {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
    word-break: break-all;
}

.header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 0.6s ease;
}

.header h1 {
    color: #000;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: none;
}

.header .subtitle {
    color: #000;
    font-size: 17px;
    margin-bottom: 18px;
    text-shadow: none;
}

.header .phase {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #000;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: slideUp 0.5s ease;
}

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

.search-box {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    min-width: 140px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box label i {
    color: #4caf50;
}

.search-input {
    flex: 1;
    min-width: 300px;
    padding: 14px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.search-btn {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

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

.loading {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading .spinner {
    border: 4px solid rgba(76, 175, 80, 0.1);
    border-top: 4px solid #4caf50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.result-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.wc-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4caf50;
    animation: slideUp 0.5s ease;
}

.wc-info h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
}

.wc-info h3 .wc-badge {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.rsc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rsc-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.5s ease;
    animation-fill-mode: both;
}

.rsc-item:nth-child(1) { animation-delay: 0.1s; }
.rsc-item:nth-child(2) { animation-delay: 0.2s; }
.rsc-item:nth-child(3) { animation-delay: 0.3s; }
.rsc-item:nth-child(4) { animation-delay: 0.4s; }
.rsc-item:nth-child(5) { animation-delay: 0.5s; }

.rsc-item:hover {
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
    border-color: rgba(76, 175, 80, 0.3);
}

.rsc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    cursor: default;
}

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

.rsc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.rsc-code {
    font-weight: 700;
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 6px;
}

.rsc-name {
    color: #7f8c8d;
    margin-top: 6px;
    font-size: 16px;
}

.priority {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.priority-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

.priority-1 .priority-icon { background-color: #2ecc71; color: #2ecc71; }
.priority-2 .priority-icon { background-color: #3498db; color: #3498db; }
.priority-3 .priority-icon { background-color: #f1c40f; color: #f1c40f; }
.priority-high .priority-icon { background-color: #e74c3c; color: #e74c3c; }

.toggle-btn {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(102, 187, 106, 0.1) 100%);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(102, 187, 106, 0.2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.toggle-btn .icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn.expanded .icon {
    transform: rotate(180deg);
}

.rsc-details {
    display: none;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid rgba(76, 175, 80, 0.1);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        margin-top: 0;
    }
    to {
        opacity: 1;
        max-height: 2000px;
        padding-top: 24px;
        margin-top: 24px;
    }
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.detail-card {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(102, 187, 106, 0.05) 100%);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(76, 175, 80, 0.1);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.detail-card h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.detail-card h4 i {
    color: #4caf50;
}

.rule-text {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, rgba(243, 156, 18, 0.1) 100%);
    border-radius: 12px;
    padding: 18px;
    border-left: 4px solid #f1c40f;
    margin-bottom: 24px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(241, 196, 15, 0.1);
}

.rule-text h4 {
    color: #d35400;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.error-message {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    color: #c0392b;
    padding: 18px;
    border-radius: 12px;
    margin-top: 25px;
    border-left: 4px solid #e74c3c;
    display: none;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.no-results i {
    font-size: 64px;
    color: #bdc3c7;
    margin-bottom: 20px;
    opacity: 0.6;
}

.assets-section {
    margin-top: 24px;
}

.assets-section h4 {
    color: #2c3e50;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
}

.assets-section h4 i {
    color: #4caf50;
}

.assets-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.asset-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.asset-code {
    font-weight: 700;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 6px;
}

.asset-name {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 12px;
}

.asset-detail {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ocr-result-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.ocr-result-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.ocr-result-header h2 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

.ocr-info {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ocr-info p {
    margin: 5px 0;
    color: #555;
    font-size: 14px;
}

.ocr-info strong {
    color: #333;
}

.ocr-text {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 14px;
    text-shadow: none;
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-shell.sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1000;
        transform: translateX(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar.collapsed {
        transform: translateX(-100%);
    }

    .sidebar-toggle {
        right: -40px;
    }
    
    .sidebar-toggle.right-toggle {
        left: -40px;
        right: auto;
    }

    .main {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .assets-list {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 24px;
    }

    .header .subtitle {
        font-size: 14px;
    }
}

/* 右侧边栏相关样式 */
.selected-count {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.file-item.empty-state {
    cursor: default;
    opacity: 0.6;
}

.file-item.empty-state:hover {
    transform: none;
    box-shadow: none;
    border-color: #e7eef6;
}

.file-item.empty-state::before {
    display: none;
}

/* 已选资源组项样式 */
.selected-item {
    position: relative;
    padding-right: 30px;
}

.selected-item .delete-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0;
}

.selected-item:hover .delete-btn {
    opacity: 1;
}

.selected-item .delete-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* 导出区域样式 */
.export-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.export-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    width: 100%;
    justify-content: center;
}

.export-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
}

.export-btn:active:not(:disabled) {
    transform: translateY(0);
}

.export-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

/* 资源组勾选框样式 */
.rsc-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2px solid #4caf50;
    border-radius: 6px;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rsc-checkbox:checked {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    border-color: #4caf50;
}

.rsc-checkbox:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.rsc-checkbox:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.rsc-item {
    position: relative;
}

/* 响应式：右侧边栏 */
@media (max-width: 1400px) {
    .app-shell {
        grid-template-columns: 320px 1fr 280px;
    }
}

@media (max-width: 1200px) {
    .app-shell {
        grid-template-columns: 280px 1fr 260px;
    }
}

/* 用户信息和登出按钮 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

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

.logout-btn i {
    font-size: 14px;
}

/* 下载记录相关样式 */
.download-item {
    position: relative;
    padding-right: 50px;
}

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

.download-info .name {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 4px;
    line-height: 1.4;
}

.download-info .sub {
    color: #7f8c8d;
    font-size: 11px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.download-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.download-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.download-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* 修复勾选框的绝对定位问题 */
.rsc-checkbox:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.rsc-checkbox {
    position: relative;
}
