/* 准考证页面样式 */
.admission-ticket-page {
    background-color: #f7f8fa;
    min-height: 100vh;
    padding: 15px;
    box-sizing: border-box;
    padding-bottom: 80px; /* 为底部导航栏预留空间 */
}

.ticket-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border: 1px solid #dee2e6; /* 为截图区域添加边框 */
}

.ticket-header {
    background-color: #3B5FE0;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.logo {
    width: 50px;
    height: 50px;
    background-color: #2CAB44;
    border-radius: 8px;
    margin-bottom: 10px;
}

.ticket-title {
    font-size: 22px;
    font-weight: bold;
}

.ticket-info {
    background-color: #FFFFFF;
    padding: 12.5px;
    display: flex;
    border-bottom: 1px solid #EEEEEE;
}

.info-left {
    width: 90px;
    height: 110px;
    margin-right: 15px;
}

.student-photo {
    width: 100%;
    height: 100%;
    background-color: #2CAB44;
}

.info-right {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 10px;
}

.info-label {
    width: 75px;
    font-size: 14px;
    color: #666;
}

.info-value {
    flex: 1;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    word-break: break-all;
}

.exam-info {
    background-color: #FFFFFF;
    padding: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
}

.info-row-group {
    display: flex;
    margin-bottom: 10px;
}

.info-row-half {
    flex: 1;
    display: flex;
}

.info-row-half .info-label {
    min-width: 60px;
}

.exam-date-row {
    margin-bottom: 15px;
}

.subject-info {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    counter-reset: subject-counter;
}

.subject-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.subject-item-name {
    width: 50%;
    padding-right: 10px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
}

.subject-item-time {
    width: 50%;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.subject-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
}

.subject-name {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    margin-right: 10px;
}

.subject-name::before {
    counter-increment: subject-counter;
    content: "科目" counter(subject-counter, cjk-ideographic) "： ";
}

.subject-time {
    font-size: 14px;
    color: #666;
    text-align: right;
    flex-shrink: 0;
}

.exam-notice {
    background-color: #FFFFFF;
    padding: 15px;
    margin-top: 10px;
    border-radius: 8px;
}

.notice-list {
    margin-top: 10px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 7.5px;
}

.notice-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3B5FE0;
    margin-top: 5px;
    margin-right: 7.5px;
    flex-shrink: 0;
}

.notice-text {
    flex: 1;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.download-btn {
    width: 100%;
    height: 45px;
    line-height: 45px;
    background-color: #3B5FE0;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
    margin-bottom: 15px;
    border: none;
    cursor: pointer;
} 

/* 添加加载中状态样式 */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 16px;
    color: #333;
}

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

/* 添加无准考证提示信息的样式 */
.no-ticket-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 500px;
    padding: 30px 20px;
    text-align: center;
}

.no-ticket-icon {
    margin-bottom: 15px;
}

.no-ticket-icon svg {
    filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.2));
}

.btn-primary {
    background-color: #1890ff;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #096dd9;
}

.btn-secondary {
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* 打印时隐藏不需要的元素 */
@media print {
    .btn-primary, .btn-secondary, #print-btn {
        display: none !important;
    }
    
    .admission-ticket-page {
        margin: 0;
        padding: 0;
    }
    
    .ticket-content {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
}

/* Toast提示样式 */
.toast-container {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.3s;
    max-width: 300px;
}

.toast.success {
    background-color: #52c41a;
}

.toast.error {
    background-color: #f5222d;
}

.toast.info {
    background-color: #1890ff;
}

.toast.warning {
    background-color: #faad14;
}

.notice-section {
    margin-top: 20px;
    padding: 15px;
}

.footer-actions {
    text-align: center;
    padding: 20px 0;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* 图片预览容器 */
.image-preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-preview-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto; /* 当内容超高时允许滚动 */
    padding-bottom: 80px; /* 为底部导航栏预留空间 */
    box-sizing: border-box;
}

#generated-image {
    max-width: 100%;
    max-height: calc(90vh - 100px); /* 留出空间给提示和按钮 */
    display: block;
    margin: 0 auto;
}

.save-tip {
    color: #333;
    margin: 15px 0;
    font-size: 16px;
    font-weight: bold;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
} 