/* 考试成绩查询系统 - 样式表 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 查询页面样式 */
.public-exam-query {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
}

.public-exam-query .exam-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.public-exam-query .query-wrapper {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.public-exam-query .query-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.public-exam-query .query-header h1 {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.public-exam-query .query-header .sub-title {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.public-exam-query .form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 20px;
}

.public-exam-query .query-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    overflow: hidden;
}

.public-exam-query .card-header {
    padding: 4px 0;
    border-bottom: none;
}

.public-exam-query .card-header .header-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.public-exam-query .query-form-content {
    padding: 10px 0;
}

.public-exam-query .exam-info-display {
    padding: 8px 12px;
    background: #f5f7fa;
    border-radius: 4px;
    color: #606266;
    font-size: 14px;
    line-height: 1.6;
}

.public-exam-query .exam-desc-display {
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 4px;
    color: #606266;
    font-size: 13px;
    line-height: 1.6;
    max-height: 80px;
    overflow: hidden;
}

.public-exam-query .submit-item {
    margin-top: 10px;
    margin-bottom: 0;
}

.public-exam-query .submit-btn {
    width: 100%;
    height: 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.public-exam-query .submit-btn:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* 微信浮窗样式 */
.public-exam-query .wechat-float-window {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    transition: all 0.3s ease;
}

.public-exam-query .wechat-float-window.collapsed {
    width: 120px;
}

.public-exam-query .wechat-float-window.collapsed .float-content {
    display: none;
}

.public-exam-query .float-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.public-exam-query .float-header:hover {
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.public-exam-query .wechat-icon {
    font-size: 16px;
    animation: bounce 1.5s infinite;
}

.public-exam-query .float-title {
    font-size: 14px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.public-exam-query .close-btn {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.public-exam-query .close-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

.public-exam-query .float-content {
    padding: 16px;
    animation: slideIn 0.3s ease;
}

.public-exam-query .qrcode-wrapper {
    text-align: center;
    margin-bottom: 12px;
}

.public-exam-query .qrcode-img {
    width: 140px;
    height: 140px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    background: white;
    padding: 4px;
}

.public-exam-query .wechat-info .info-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #303133;
}

.public-exam-query .wechat-info .info-feature {
    margin: 6px 0;
    font-size: 12px;
    color: #606266;
    line-height: 1.5;
}

/* ================================ */
/* 结果页面样式 */
/* ================================ */
.exam-result-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow-x: hidden;
    padding-bottom: 40px;
}

.exam-result-page .result-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.exam-result-page .result-wrapper {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 40px;
}

.exam-result-page .result-header {
    color: white;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exam-result-page .result-header h1 {
    font-size: 28px;
    margin: 0;
    font-weight: bold;
}

.exam-result-page .back-btn {
    color: white;
    opacity: 0.9;
    transition: all 0.3s ease;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.exam-result-page .back-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.1);
}

.exam-result-page .result-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    background: white;
    overflow: hidden;
}

.exam-result-page .card-header {
    padding: 4px 0;
    font-size: 15px;
    font-weight: 600;
    color: #303133;
}

.exam-result-page .exam-info-card .exam-title {
    margin: 0 0 10px 0;
    color: #303133;
    font-size: 18px;
}

.exam-result-page .exam-info-card .exam-desc {
    margin: 0;
    color: #606266;
    line-height: 1.6;
    font-size: 14px;
}

.exam-result-page .score-display {
    display: flex;
    gap: 30px;
    align-items: center;
}

.exam-result-page .score-main {
    flex-shrink: 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    min-width: 150px;
}

.exam-result-page .score-value {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.exam-result-page .score-total {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.exam-result-page .score-level {
    font-size: 16px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

.exam-result-page .score-details {
    flex: 1;
}

.exam-result-page .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.exam-result-page .detail-item:last-child {
    border-bottom: none;
}

.exam-result-page .detail-label {
    color: #909399;
    font-size: 14px;
    font-weight: 500;
}

.exam-result-page .detail-value {
    color: #303133;
    font-size: 14px;
    font-weight: 600;
}

.exam-result-page .detail-value .total {
    color: #909399;
    font-weight: normal;
    margin-left: 4px;
}

.exam-result-page .wechat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.exam-result-page .wechat-promotion {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.exam-result-page .qrcode-box {
    text-align: center;
    flex-shrink: 0;
}

.exam-result-page .qrcode-box .qrcode {
    width: 160px;
    height: 160px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.exam-result-page .qrcode-box .qrcode-label {
    margin-top: 10px;
    color: #606266;
    font-size: 12px;
    margin-bottom: 0;
}

.exam-result-page .promotion-text {
    flex: 1;
}

.exam-result-page .promotion-text h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #303133;
    font-weight: 600;
}

.exam-result-page .promotion-text .feature-item {
    margin: 8px 0;
    color: #606266;
    font-size: 14px;
    line-height: 1.6;
}

.exam-result-page .promotion-text .promotion-tip {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    color: #909399;
    font-size: 13px;
    margin-bottom: 0;
}

.exam-result-page .action-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.exam-result-page .no-result {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* 动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

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

/* 响应式布局 */
@media (max-width: 768px) {
    .public-exam-query .query-wrapper {
        max-width: 100%;
        padding: 15px;
        padding-top: 30px;
    }

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

    .public-exam-query .query-header .sub-title {
        font-size: 12px;
    }

    .public-exam-query .wechat-float-window {
        width: 280px;
        right: 15px;
        bottom: 15px;
    }

    .exam-result-page .result-wrapper {
        max-width: 100%;
        padding: 15px;
        padding-top: 30px;
    }

    .exam-result-page .result-header h1 {
        font-size: 22px;
    }

    .exam-result-page .score-display {
        flex-direction: column;
        gap: 20px;
    }

    .exam-result-page .score-value {
        font-size: 40px;
    }

    .exam-result-page .wechat-promotion {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .exam-result-page .qrcode-box .qrcode {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .public-exam-query .query-wrapper {
        padding: 12px;
        padding-top: 20px;
    }

    .public-exam-query .query-header {
        margin-bottom: 20px;
    }

    .public-exam-query .query-header h1 {
        font-size: 20px;
    }

    .public-exam-query .query-header .sub-title {
        font-size: 11px;
    }

    .public-exam-query .wechat-float-window {
        width: 260px;
        right: 10px;
        bottom: 10px;
    }

    .public-exam-query .wechat-float-window.collapsed {
        width: 100px;
    }

    .exam-result-page .action-buttons {
        flex-direction: column;
    }

    .exam-result-page .action-buttons button {
        width: 100%;
    }
}

/* 打印样式 */
@media print {
    .exam-result-page {
        background: white;
    }

    .exam-result-page .result-background {
        display: none;
    }

    .exam-result-page .result-header {
        color: #303133;
    }

    .exam-result-page .back-btn {
        display: none;
    }

    .exam-result-page .action-buttons {
        display: none;
    }

    .exam-result-page .result-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .exam-result-page .wechat-card {
        display: none;
    }
}
