/* SDGs证书查询系统样式 */
#sdgs-certificate-query {
    background-color: #d8ecda;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

/* 查询表单容器 - 减小宽度与证书一致 */
.certificate-query-container {
    max-width: 800px;
    margin: 0 auto;
}

.certificate-query-form {
    background: #4B9CD6;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.certificate-query-form h3 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
    color: white;
}

/* 输入框样式 - 修复文字颜色问题 */
.sdgs-input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #333 !important;
    background-color: white !important;
}

.sdgs-input::placeholder {
    color: #666 !important;
}

.sdgs-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
    color: #333 !important;
}

.sdgs-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #333;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}

.sdgs-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,215,0,0.4);
}

.sdgs-btn:disabled {
    background: #cccccc;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* 证书样式 */
.certificate-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.certificate-border {
    border: 20px solid transparent;
    border-image: linear-gradient(45deg, #4B9CD6, #51CF66, #FFD43B, #9775FA);
    border-image-slice: 1;
    background: white;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.certificate-header {
    text-align: center;
    padding: 40px 40px 20px;
    background: linear-gradient(135deg, #4B9CD6, #3a7bb5);
    color: white;
    position: relative;
}

.certificate-title {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 10px;
    letter-spacing: 1px;
    line-height: 1.3;
}

.certificate-subtitle {
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
    line-height: 1.4;
}

.certificate-body {
    padding: 40px;
}

.certificate-type {
    text-align: center;
    font-size: 28px;
    color: #4B9CD6;
    margin: 0 0 30px;
    font-weight: bold;
    border-bottom: 2px solid #4B9CD6;
    padding-bottom: 15px;
}

.certificate-content {
    text-align: center;
    margin-bottom: 30px;
}

.proof-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.highlight-name {
    color: #4B9CD6;
    font-weight: bold;
    font-size: 22px;
}

.id-info {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

.completion-content {
    font-size: 18px;
    line-height: 1.6;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #51CF66;
}

.full-certificate-name {
    font-size: 24px;
    color: #333;
    margin: 25px 0 15px;
    font-weight: 600;
}

.proof-expectation {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.certificate-number-section {
    background: linear-gradient(135deg, #FFD43B, #FFA500);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    color: #333;
}

.certificate-number-section p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.issue-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.english-details-section {
    border-top: 2px solid #eee;
    padding-top: 25px;
    margin-top: 25px;
}

.english-title {
    font-size: 18px;
    font-weight: bold;
    color: #4B9CD6;
    margin-bottom: 10px;
}

.english-content {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.certificate-footer {
    background: #f8f9fa;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    border-top: 1px solid #eee;
}

.footer-text p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.footer-text p:first-child {
    font-weight: bold;
    color: #333;
}

/* 结果区域样式 */
.sdgs-result-area {
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.sdgs-result-area.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sdgs-result-area.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 导入区域样式 */
.import-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.import-instructions {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #4B9CD6;
}

.import-instructions h3 {
    color: #4B9CD6;
    margin-top: 0;
}

.upload-area {
    margin: 25px 0;
    padding: 25px;
    border: 3px dashed #4B9CD6;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: #e9f7fe;
    border-color: #3a7bb5;
}

.upload-area p {
    margin-bottom: 15px;
    color: #666;
}

.sdgs-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    text-align: center;
}

.sdgs-debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .certificate-container {
        padding: 10px;
    }
    
    .certificate-border {
        border-width: 10px;
    }
    
    .certificate-header {
        padding: 20px 20px 10px;
    }
    
    .certificate-title {
        font-size: 20px;
    }
    
    .certificate-subtitle {
        font-size: 12px;
    }
    
    .certificate-body {
        padding: 20px;
    }
    
    .certificate-query-container {
        padding: 0 10px;
    }
}

/* 导入报告样式 */
.import-report {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.import-report h4 {
    color: #4B9CD6;
    margin-top: 0;
    border-bottom: 2px solid #4B9CD6;
    padding-bottom: 10px;
}

.import-report h5 {
    color: #333;
    margin: 15px 0 10px;
}

.failed-records, .success-records {
    margin: 15px 0;
}

.failed-table, .success-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 14px;
}

.failed-table th, .success-table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    border: 1px solid #dee2e6;
    font-weight: bold;
}

.failed-table td, .success-table td {
    padding: 8px 10px;
    border: 1px solid #dee2e6;
}

.failed-table {
    background: #f8d7da;
}

.failed-table th {
    background: #f5c6cb;
    color: #721c24;
}

.success-table {
    background: #d4edda;
}

.success-table th {
    background: #c3e6cb;
    color: #155724;
}

.failed-table tr:nth-child(even) {
    background: #f8d7da;
}

.success-table tr:nth-child(even) {
    background: #c3e6cb;
}

/* 数据分析页面样式 */
.analytics-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.analytics-section h2 {
    color: #4B9CD6;
    border-bottom: 2px solid #4B9CD6;
    padding-bottom: 10px;
    margin-top: 0;
}

.percentage-bar {
    position: relative;
    background: #f0f0f0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.percentage-fill {
    background: linear-gradient(90deg, #4B9CD6, #51CF66);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 2px white;
}

.status-ok {
    color: #28a745;
    font-weight: bold;
}

.status-warning {
    color: #ffc107;
    font-weight: bold;
}

.consistency-check {
    margin-top: 15px;
}

.check-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.check-item.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.check-item.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.check-item.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.check-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.check-item ul {
    margin: 0;
    padding-left: 20px;
}

.check-item li {
    margin-bottom: 5px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-card {
    background: linear-gradient(135deg, #4B9CD6, #3a7bb5);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin: 0 0 15px;
    font-size: 16px;
    opacity: 0.9;
}

.summary-number {
    font-size: 36px;
    font-weight: bold;
    margin: 0;
}

/* 错误和成功消息样式 */
.error-message, .import-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.success-message, .import-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

.error-message i, .import-error i {
    color: #dc3545;
    margin-right: 8px;
}

.success-message i, .import-success i {
    color: #28a745;
    margin-right: 8px;
}

.import-loading {
    text-align: center;
    padding: 20px;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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