/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F7F3F0;
    color: #333;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 加载动画 */
.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(247, 243, 240, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E5DED8;
    border-top: 3px solid #9D8C7E;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 10px;
    font-size: 14px;
    color: #9D8C7E;
}

/* 移动端页面容器 */
.mobile-search-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}

/* 搜索头部 */
.search-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    width: 100%;
}

.search-header h1 {
    font-size: 22px;
    color: #4A4A4A;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.header-underline {
    width: 50px;
    height: 3px;
    background-color: #9D8C7E;
    margin: 0 auto;
}

/* 搜索结果容器 */
.search-result {
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(157, 140, 126, 0.1);
    padding: 20px 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 加载状态 */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    width: 100%;
}

/* 结果容器 */
.search-result-container {
    display: none;
    width: 100%;
}

.certificate-table {
    width: 100%;
}

.certificate-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate-details h2 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    color: #4A4A4A;
    font-weight: 500;
    width: 100%;
}

.certificate-details img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(157, 140, 126, 0.15);
}

.content-details {
    width: 100%;
    background-color: #F7F3F0;
    border-radius: 8px;
    padding: 20px 15px;
}

.certificate-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 15px;
    align-items: center;
    width: 100%;
}

.certificate-row:last-child {
    margin-bottom: 0;
}

.certificate-label {
    width: 90px;
    color: #9D8C7E;
    flex-shrink: 0;
    font-weight: 500;
    text-align: right;
    padding-right: 15px;
}

.certificate-value {
    flex: 1;
    color: #4A4A4A;
    word-break: break-all;
}

/* 未找到状态 */
.not-found {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    width: 100%;
    text-align: center;
}

.not-found-icon {
    width: 80px;
    height: 80px;
    background-image: url('https://cdn1.guoxinshujian.com/image/search/not-found.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-bottom: 20px;
}

.not-found-text {
    text-align: center;
    width: 100%;
}

.not-found-title {
    font-size: 18px;
    color: #4A4A4A;
    margin-bottom: 12px;
    font-weight: 500;
}

.not-found-desc {
    font-size: 14px;
    color: #9D8C7E;
    line-height: 1.6;
    padding: 0 20px;
}

/* 声明提示 */
.result-tips {
    display: none;
    width: 100%;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(157, 140, 126, 0.1);
    text-align: center;
}

.result-tips h4 {
    font-size: 16px;
    color: #4A4A4A;
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
    padding-left: 15px;
    display: inline-block;
}

.result-tips h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: #9D8C7E;
    border-radius: 2px;
}

.result-tips p {
    font-size: 14px;
    color: #9D8C7E;
    line-height: 1.6;
    text-align: left;
}

/* 响应式调整 */
@media screen and (max-width: 360px) {
    .mobile-search-page {
        padding: 15px 12px;
    }
    
    .search-header h1 {
        font-size: 20px;
    }
    
    .certificate-row {
        font-size: 14px;
    }
    
    .certificate-label {
        width: 80px;
    }

    .result-tips {
        padding: 15px;
    }
}

/* 显示状态类 */
.show {
    display: flex;
}

/* 添加过渡动画 */
.search-result-container,
.not-found,
.result-tips {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.search-result-container.show,
.not-found.show,
.result-tips.show {
    opacity: 1;
    transform: translateY(0);
} 