/* ==========================================================================
   维普论文检测系统 - 检测/服务子页样式
   视觉延续主页体系：白底、主色 #e44548、1200px 容器、Bootstrap 4 组件
   ========================================================================== */

.check-page,
.check-page * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.check-page {
    overflow: hidden;
    background: #fff;
    color: #202733;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    text-rendering: optimizeLegibility;
}

.check-page a {
    text-decoration: none;
}

/* ---------- 检测页顶部：浅蓝背景 + 左侧示例卡 + 右侧文案 ---------- */
.check-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #dceaf5;
    background: #e8f5ff;
}

.check-hero .home-container {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 340px;
    align-items: center;
    gap: 64px;
    padding-top: 46px;
    padding-bottom: 46px;
}

.check-hero-card {
    flex: 0 0 420px;
    width: 420px;
    padding: 26px 26px 24px;
    border: 1px solid #dbe9f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31, 39, 51, .06);
}

.check-hero-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.check-hero-card-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1d2129;
    font-size: 16px;
    font-weight: 700;
}

.check-hero-card-logo i {
    font-style: normal;
}

.check-hero-card-extra {
    color: #df4747;
    font-size: 13px;
}

.check-hero-data {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 34px;
    padding: 14px 0;
    border-top: 1px dashed #e3ebf2;
    border-bottom: 1px dashed #e3ebf2;
}

.check-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-hero-stat b {
    color: #1d2129;
    font-size: 30px;
    line-height: 1.15;
}

.check-hero-stat span {
    color: #596879;
    font-size: 13px;
}

.check-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.check-hero-chip {
    padding: 5px 10px;
    border: 1px solid #dbe4ec;
    border-radius: 4px;
    background: #f8fafc;
    color: #4f5e70;
    font-size: 13px;
}

.check-hero-steps {
    display: flex;
    gap: 26px;
    margin-top: 18px;
    color: #3b4654;
    font-size: 13px;
}

.check-hero-steps span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.check-hero-steps i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e44548;
}

.check-hero-copy h1 {
    margin: 0;
    color: #1f2733;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
}

.check-hero-copy h1 small {
    display: inline-block;
    margin-left: 10px;
    color: #4e5969;
    font-size: 15px;
    font-weight: 400;
}

.check-hero-copy > p {
    margin: 14px 0 0;
    color: #536172;
    font-size: 15px;
    line-height: 1.85;
    text-align: justify;
}

.check-hero-advantage {
    margin-top: 18px;
}

.check-hero-advantage h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: #1d2129;
    font-size: 16px;
    line-height: 24px;
}

.check-hero-advantage h4 b {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    transform: rotate(45deg);
    border-radius: 1px;
    background: #ffc9c9;
}

.check-hero-advantage p {
    margin: 0;
    color: #4e5969;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
}

/* ---------- 检测主体区域：主区 + 右侧栏 ---------- */
.check-body {
    padding: 34px 0 70px;
    background: #fff;
}

.check-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: start;
}

/* ---------- 检测系统切换 Tab ---------- */
.check-sys-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    margin: 0 0 26px;
    padding: 20px 18px 0;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #eef2f6;
    background: #fff;
    box-shadow: 0 2px 10px rgba(28, 52, 84, .04);
}

.check-sys-tab {
    padding: 0 2px 16px;
    border-bottom: 3px solid transparent;
    color: #222b37;
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease;
}

.check-sys-tab:hover {
    color: #2d7ff9;
}

.check-sys-tab.is-active {
    border-bottom-color: #2d7ff9;
    color: #2d7ff9;
    font-weight: 600;
}

.check-version-subhead {
    grid-column: 1 / -1;
    margin: 4px 0 -2px;
    padding-top: 14px;
    border-top: 1px dashed #e3eaf2;
    color: #222b37;
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .check-sys-tabs {
        gap: 24px;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .check-sys-tab {
        font-size: 15px;
    }
}

/* ---------- 版本选择 ---------- */
.check-version-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.check-version-head h2 {
    margin: 0;
    color: #222b37;
    font-size: 20px;
    font-weight: 700;
}

.check-version-head a {
    color: #596879;
    font-size: 13px;
}

.check-version-head a:hover {
    color: #e44548;
}

.check-version-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.check-version-card {
    display: flex;
    position: relative;
    min-height: 116px;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
    border: 1px solid #e0e6ec;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.check-version-card:hover {
    border-color: #e44548;
    box-shadow: 0 6px 18px rgba(228, 69, 72, .10);
}

.check-version-card.is-selected {
    border-color: #e44548;
    background: #fff5f5;
    box-shadow: 0 6px 18px rgba(228, 69, 72, .12);
}

.check-version-card.is-selected::after {
    content: "✓";
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 26px;
    border-radius: 0 8px 0 8px;
    background: #e44548;
    color: #fff;
    font-size: 13px;
    line-height: 25px;
    text-align: center;
}

.check-version-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1d2129;
    font-size: 15px;
    font-weight: 600;
}

.check-version-card-top i {
    font-style: normal;
    color: #df4747;
}

.check-version-card-name {
    margin-top: 5px;
    color: #293342;
    font-size: 15px;
    font-weight: 600;
}

.check-version-card-desc {
    margin-top: 4px;
    color: #596879;
    font-size: 13px;
    line-height: 1.6;
}

.check-version-card-price {
    margin-top: 10px;
    color: #df4747;
    font-size: 17px;
    font-weight: 700;
}

.check-version-card-price small {
    margin-left: 2px;
    font-size: 12px;
    font-weight: 400;
}

/* ---------- 当前版本条（AIGC/格式页） ---------- */
.check-current-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 12px 16px;
    border: 1px solid #f0d2d2;
    border-radius: 6px;
    background: #fff5f5;
}

.check-current-bar span {
    color: #596879;
    font-size: 14px;
}

.check-current-bar b {
    color: #e44548;
    font-size: 15px;
}

.check-current-link {
    padding: 0;
    border: 0;
    background: none;
    color: #2d7ff9;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.check-current-link:hover {
    color: #e44548;
}

.check-current-bar em {
    margin-left: auto;
    color: #df4747;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
}

.check-current-bar em small {
    font-size: 12px;
    font-weight: 400;
}

/* ---------- 提交表单 ---------- */
.check-form {
    margin-top: 22px;
}

.check-form-item {
    margin-bottom: 16px;
}

.check-form-label {
    display: block;
    margin-bottom: 6px;
    color: #293342;
    font-size: 14px;
    font-weight: 600;
}

.check-form-label em {
    color: #df4747;
    font-style: normal;
}

.check-form-label small {
    margin-left: 10px;
    color: #8590a0;
    font-size: 12px;
    font-weight: 400;
}

.check-form-tip {
    margin: 4px 0 0;
    color: #8590a0;
    font-size: 12px;
    line-height: 1.7;
}

.check-input,
.check-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dbe1e7;
    border-radius: 4px;
    background: #fff;
    color: #313b48;
    font-size: 14px;
}

.check-input:focus,
.check-select:focus {
    border-color: #e44548;
    outline: 0;
}

.check-input::placeholder {
    color: #a8b0bc;
}

.check-upload-tabs {
    display: flex;
    gap: 22px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e6ebf1;
}

.check-upload-tab {
    position: relative;
    padding: 10px 4px 12px;
    border: 0;
    background: transparent;
    color: #657181;
    cursor: pointer;
    font-size: 15px;
}

.check-upload-tab::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
}

.check-upload-tab.is-active {
    color: #202936;
    font-weight: 600;
}

.check-upload-tab.is-active::after {
    background: #df4747;
}

.check-upload-zone {
    display: flex;
    min-height: 132px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 1px dashed #cdd6e0;
    border-radius: 8px;
    background: #fafcfe;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.check-upload-zone:hover {
    border-color: #e44548;
    background: #fff8f8;
}

.check-upload-zone.dragover {
    border-color: #e44548;
    background: #fff5f5;
}

.check-upload-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f7f7;
    color: #b1bec5;
    font-size: 24px;
}

.check-upload-btn {
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: #e44548;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.check-upload-btn:hover {
    background: #ca3d3d;
}

.check-upload-hints {
    color: #8590a0;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

.check-upload-hints b {
    color: #4e5969;
    font-weight: 400;
}

.check-file-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #313b48;
    font-size: 14px;
}

.check-file-name a {
    color: #df4747;
    font-size: 13px;
}

.check-textarea {
    width: 100%;
    min-height: 132px;
    padding: 12px;
    border: 1px solid #dbe1e7;
    border-radius: 8px;
    background: #fafcfe;
    color: #313b48;
    font-size: 14px;
    line-height: 1.7;
    resize: vertical;
}

.check-textarea:focus {
    border-color: #e44548;
    outline: 0;
}

.check-notice-bar {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #f7f9fb;
    color: #5f6d7d;
    font-size: 13px;
    line-height: 1.8;
}

.check-submit-row {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 22px;
}

.check-submit-btn {
    display: inline-flex;
    width: 132px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: #e44548;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.check-submit-btn:hover {
    background: #ca3d3d;
}

.check-submit-btn:disabled {
    background: #c9ced6;
    cursor: not-allowed;
}

.check-batch-entry {
    color: #596879;
    font-size: 14px;
    line-height: 1.7;
}

.check-batch-entry a {
    color: #df4747;
}

.check-batch-entry a:hover {
    text-decoration: underline;
}

/* ---------- 智评学科选择 ---------- */
.check-subject-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #f0d2d2;
    border-radius: 6px;
    background: #fff5f5;
}

.check-subject-panel .check-form-item {
    margin-bottom: 0;
}

/* ---------- 右侧栏 ---------- */
.check-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.check-side-box {
    padding: 18px 20px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    background: #fff;
}

.check-side-title {
    margin: 0 0 12px;
    color: #1d2129;
    font-size: 16px;
    font-weight: 600;
}

.check-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-side-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #5f6d7d;
    font-size: 13px;
    line-height: 1.7;
}

.check-side-list i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #3a9b78;
    font-style: normal;
}

.check-side-group-title {
    margin: 0 0 10px;
    color: #293342;
    font-size: 14px;
    font-weight: 600;
}

.check-side-qr {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.check-side-qr-img {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    background: #fafcfe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8590a0;
    font-size: 12px;
    text-align: center;
}

.check-side-qr p {
    margin: 0;
    color: #4e5969;
    font-size: 13px;
    line-height: 1.8;
}

/* ---------- 通用面板（查看报告 / 验真 / 批量） ---------- */
.check-panel {
    padding: 30px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    background: #fff;
}

.check-panel-title {
    margin: 0 0 14px;
    color: #222b37;
    font-size: 22px;
    font-weight: 700;
}

.check-panel-sub {
    margin: 0 0 20px;
    color: #5f6d7d;
    font-size: 14px;
    line-height: 1.85;
}

.check-panel + .check-panel {
    margin-top: 24px;
}

.order-form {
    display: flex;
    gap: 12px;
}

.order-form .check-input {
    flex: 1;
}

.order-form button {
    display: inline-flex;
    width: 110px;
    height: 42px;
    flex: 0 0 110px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: #e44548;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.order-form button:hover {
    background: #ca3d3d;
}

.order-result {
    margin-top: 18px;
}

.order-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #eef1f5;
}

.order-item:first-child {
    border-top: 0;
}

.order-item-title {
    color: #1d2129;
    font-size: 14px;
    font-weight: 600;
}

.order-item-meta {
    color: #596879;
    font-size: 13px;
    line-height: 1.8;
}

.order-item-status {
    padding: 4px 10px;
    border-radius: 4px;
    background: #f0f4fe;
    color: #0c47a6;
    font-size: 13px;
}

.order-item-status.done {
    background: #e9f7f0;
    color: #227a4c;
}

.order-item-status.fail {
    background: #fff0f0;
    color: #df4747;
}

.order-empty {
    padding: 40px 0;
    color: #8590a0;
    font-size: 14px;
    text-align: center;
}

/* ---------- 批量提交 ---------- */
.batch-table {
    width: 100%;
    border-collapse: collapse;
}

.batch-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #e6ebf1;
    color: #293342;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.batch-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f5;
}

.batch-table .check-input {
    height: 38px;
}

.batch-table .check-select {
    height: 38px;
}

.batch-del {
    border: 0;
    background: transparent;
    color: #df4747;
    cursor: pointer;
    font-size: 13px;
}

.batch-del:hover {
    text-decoration: underline;
}

.batch-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.batch-actions button {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border: 1px solid #e0e6ec;
    border-radius: 4px;
    background: #fff;
    color: #3b4654;
    cursor: pointer;
    font-size: 14px;
}

.batch-actions button.btn-primary {
    border-color: #e44548;
    background: #e44548;
    color: #fff;
}

.batch-actions button:hover {
    border-color: #e44548;
    color: #e44548;
}

.batch-actions button.btn-primary:hover {
    color: #fff;
    background: #ca3d3d;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .check-hero-card {
        flex-basis: 380px;
        width: 380px;
    }
}

@media (max-width: 991px) {
    .check-hero .home-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .check-hero-card {
        flex-basis: auto;
        width: 100%;
    }

    .check-layout {
        grid-template-columns: 1fr;
    }

    .check-version-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .check-hero-copy h1 {
        font-size: 28px;
    }

    .check-version-grid {
        grid-template-columns: 1fr;
    }

    .check-subject-panel {
        grid-template-columns: 1fr;
    }

    .order-form {
        flex-direction: column;
    }

    .order-form button {
        width: 100%;
        flex-basis: auto;
    }

    .check-panel {
        padding: 20px;
    }
}

/* ===================== 收款弹层（先付款后检测） ===================== */
.pay-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(15,23,42,.55);z-index:9998;display:none;align-items:center;justify-content:center;padding:16px}
.pay-mask.is-open{display:flex}
.pay-lock{overflow:hidden}
.pay-box{width:420px;max-width:100%;background:#fff;border-radius:12px;padding:22px 24px 18px;box-shadow:0 20px 60px rgba(0,0,0,.25);position:relative}
.pay-head{display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:600;color:#1f2d3d;margin-bottom:16px}
.pay-x{font-size:22px;line-height:1;color:#9aa7b4;text-decoration:none}
.pay-sum{background:#f6f9ff;border:1px solid #e3ecfb;border-radius:8px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;gap:12px}
.pay-prod{font-size:14px;color:#3a4a5c;line-height:1.5}
.pay-amount{font-size:20px;color:#e44548;font-weight:700;white-space:nowrap}
.pay-ways{display:flex;gap:12px}
.pay-way{flex:1;height:52px;border-radius:8px;border:1px solid #e3e9f0;background:#fff;font-size:15px;color:#2b3a4b;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s;font-family:inherit}
.pay-way:hover{border-color:#2d7ff9;box-shadow:0 4px 14px rgba(45,127,249,.15)}
.pay-way:disabled{opacity:.6;cursor:not-allowed}
.pw-a,.pw-w{width:22px;height:22px;border-radius:50%;font-style:normal;font-size:13px;display:flex;align-items:center;justify-content:center;color:#fff}
.pw-a{background:#1677ff}
.pw-w{background:#07c160}
.pay-qr{text-align:center;padding-top:6px}
.pay-tabs{display:none;gap:10px;margin-bottom:14px}
.pay-tabs.show{display:flex}
.pay-tab{flex:1;height:40px;border-radius:8px;border:1px solid #e3e9f0;background:#fff;font-size:14px;color:#5a6b7d;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;font-family:inherit;transition:all .2s}
.pay-tab .pw-a,.pay-tab .pw-w{width:18px;height:18px;font-size:11px}
.pay-tab.on{border-color:#2d7ff9;color:#2d7ff9;background:#f2f7ff;font-weight:600}
.pay-tab:disabled{opacity:.6;cursor:not-allowed}
.pay-qr-box{width:200px;height:200px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;background:#fff}
.pay-qr-box img,.pay-qr-box canvas{display:block}
.pay-qr-tip{font-size:15px;color:#1f2d3d;margin:0 0 6px}
.pay-qr-sub{font-size:13px;color:#8896a6;margin:0 0 6px;line-height:1.6}
.pay-note{font-size:12px;color:#a0adbb;margin:16px 0 10px;line-height:1.7}
.pay-cancel{display:block;text-align:center;font-size:13px;color:#8896a6;padding:6px 0;text-decoration:none}
.pay-cancel:hover{color:#2d7ff9}
@media (max-width:480px){
  .pay-box{width:100%;padding:18px 16px 14px}
  .pay-ways{flex-direction:column}
  .pay-way{height:46px}
  .pay-sum{flex-direction:column;align-items:flex-start}
}