/* 以下为原有全部CSS内容，已移出HTML */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #1569e8;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: var(--dark-text);
    background-color: #f5f7fa;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.upload-container {
    background: linear-gradient(135deg, #f8fbff 60%, #e3f0ff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.10);
    padding: 3rem 2rem 2.5rem 2rem;
    margin: 1.5rem auto 2rem auto;
    border: 2.5px dashed #b6d0fa;
    transition: box-shadow 0.3s, border-color 0.3s;
    position: relative;
    animation: fadeInUp 0.8s;
}

.upload-container:hover {
    border-color: #0d6efd;
    box-shadow: 0 12px 36px rgba(13, 110, 253, 0.18);
}

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

.upload-icon {
    font-size: 4rem;
    color: #0d6efd;
    animation: bounce 1.5s infinite alternate;
}

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

.btn-primary,
.btn-primary:focus {
    background: linear-gradient(90deg, #0d6efd 60%, #1569e8 100%);
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.08);
    transition: box-shadow 0.2s, background 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #1569e8 60%, #0d6efd 100%);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
}

#advancedOptions,
#industrySelect {
    background: #f4f8ff;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 0.5rem;
    border: 1.5px solid #e3eafc;
}

#industrySelect {
    margin-top: 0.5rem;
}

.upload-container h4 {
    font-weight: 700;
    color: #1569e8;
    margin-bottom: 0.5rem;
}

.upload-container p {
    color: #6c757d;
}

#selectedFiles {
    color: #1569e8 !important;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    word-break: break-all;
}

.quality-banner {
    background: linear-gradient(90deg, #0d6efd 60%, #1569e8 100%);
    color: #fff;
    border-radius: 0 0 24px 24px;
    padding: 2.2rem 2rem 1.2rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 24px rgba(13, 110, 253, 0.10);
    text-align: center;
}

.quality-banner .bi {
    font-size: 2.2rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.quality-banner h2 {
    display: inline-block;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    vertical-align: middle;
    letter-spacing: 2px;
}

@media (max-width: 900px) {
    .quality-banner {
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
}

.main-content-bg {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(13, 110, 253, 0.08);
    padding: 0.5rem 2rem 0rem 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .main-content-bg {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
}

/* 盖章检查专用样式 */
.stamp-status {
    display: flex;
    align-items: center;
    background: #f8fbff;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.04);
    gap: 1rem;
}

.stamp-status .stamp-icon {
    font-size: 2rem !important;
    display: inline-block !important;
    vertical-align: middle;
    margin-right: 1rem;
    min-width: 2.2rem;
}

.stamp-status .stamp-present {
    color: #2ecc71;
}

.stamp-status .stamp-missing {
    color: #e74c3c;
}

.stamp-status .stamp-uncertain {
    color: #f39c12;
}

.stamp-status a,
.stamp-status span {
    font-size: 0.98rem;
}

.stamp-status strong {
    font-size: 1.08rem;
}

@media (max-width: 900px) {
    .stamp-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.8rem 0.7rem;
    }

    .stamp-status .stamp-icon {
        margin-right: 0.5rem;
    }
}

.tab-pane {
    padding: 20px 0 0;
}

.nav-tabs .nav-link {
    color: #222 !important;
    /* 未选中为黑色 */
    font-weight: 500;
    background: transparent;
    border: none;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:active {
    color: #1569e8 !important;
    /* 选中为蓝色 */
    background: #f4f8ff;
    border: none;
}

/* 问题汇总表格美化 */
.issue-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 110, 253, 0.06);
    margin-bottom: 2rem;
}

.issue-table thead th {
    background: #f4f8ff;
    color: #1569e8;
    font-weight: 600;
    font-size: 1.06rem;
    border-bottom: 2px solid #e3eafc;
}

.issue-table tbody td {
    font-size: 1.02rem;
    vertical-align: middle;
}

.issue-table tbody tr:hover {
    background: #e3f0ff;
    transition: background 0.2s;
}

.issue-table .badge {
    font-size: 0.98rem;
    padding: 0.45em 1em;
    border-radius: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.logic-issue-card {
    background: #f8fbff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.06);
    padding: 1.2rem 1.5rem 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid #1569e8;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.logic-issue-card.danger {
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.logic-issue-card.warning {
    border-left-color: #f39c12;
    background: #fffaf3;
}

.logic-issue-card.primary {
    border-left-color: #1569e8;
    background: #f8fbff;
}

.logic-issue-card .bi {
    min-width: 1.8em;
}

.logic-issue-card h6 {
    font-weight: 600;
    font-size: 1.08rem;
    color: #1569e8;
}

.logic-issue-card.danger h6 {
    color: #e74c3c;
}

.logic-issue-card.warning h6 {
    color: #f39c12;
}

.logic-issue-card.primary h6 {
    color: #1569e8;
}

.logic-issue-card .text-body {
    color: #2c3e50;
    font-size: 1.02rem;
}

.logic-issue-card .text-muted {
    font-size: 0.98rem;
}

@media (max-width: 900px) {
    .logic-issue-card {
        padding: 1rem 0.7rem 0.8rem 0.7rem;
    }
}

.font-usage-card {
    border-radius: 14px;
    background: #f8fbff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.06);
}

.font-usage-card .card-title {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.font-usage-card .list-group-item {
    background: transparent;
    font-size: 1.05rem;
    padding: 0.75rem 0.5rem;
}

.font-usage-badge {
    font-size: 1.02rem;
    padding: 0.45em 1.2em;
    border-radius: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.upload-container.border-primary {
    border-color: #1569e8 !important;
    box-shadow: 0 0 0 3px #e3f0ff;
}

/* 移动端适配增强 */
@media (max-width: 576px) {
    .main-content-bg,
    .upload-container,
    .quality-banner {
        /* padding: 0.8rem 0.3rem !important; */
        /* border-radius: 8px !important; */
        box-shadow: 0 2px 8px rgba(13,110,253,0.04) !important;
        margin-bottom: 1rem !important;
    }

    #result-page{
        padding: 0rem 0.7rem !important;
    }
  
    .quality-banner h2 {
        font-size: 1.2rem !important;
    }
    .upload-icon {
        font-size: 2.5rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
    .nav-link,
    .navbar-brand {
        font-size: 0.98rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    .navbar-brand {
        font-size: 1.05rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    .navbar .bi-robot {
        font-size: 1.3rem !important;
    }
    .navbar-nav .nav-link,
    .nav-link {
        font-size: 0.98rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    .navbar .btn {
        font-size: 0.98rem !important;
        padding: 0.3rem 0.8rem !important;
    }
    .navbar .ms-auto.d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.2rem !important;
    }
    .stamp-status {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding: 0.7rem 0.4rem !important;
    }
    .issue-table,
    .font-usage-card,
    .logic-issue-card {
        border-radius: 8px !important;
        font-size: 0.98rem !important;
        padding: 0.5rem !important;
    }
    .table-responsive {
        font-size: 0.96rem !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .issue-table,
    .issue-table thead th,
    .issue-table tbody td {
        font-size: 0.92rem !important;
        padding: 0.4rem 0.3rem !important;
        white-space: nowrap;
    }
    .issue-table thead th,
    .issue-table tbody td {
        min-width: 80px;
    }
    .issue-table .badge {
        font-size: 0.88rem !important;
        padding: 0.3em 0.7em !important;
    }
    /* 让表格在小屏下不换行，横向滚动 */
    /*
.issue-table {
    display: block;
    width: 100%;
    overflow-x: auto;
}
.issue-table thead,
.issue-table tbody,
.issue-table tr {
    display: table;
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}
*/
    .preview-pane {
        padding: 0.5rem !important;
    }
    .d-flex.justify-content-between {
        flex-direction: column !important;
        gap: 0.7rem !important;
    }
    .row > [class^="col-"] {
        margin-bottom: 1rem !important;
    }
    .nav-tabs .nav-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.98rem !important;
    }
    #selectedFiles {
        font-size: 0.98rem !important;
        word-break: break-all;
    }
    .card-title {
        font-size: 1rem !important;
    }
    .list-group-item {
        font-size: 0.96rem !important;
    }
}