/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 修复被动事件监听器警告 */
html, body {
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    min-height: 100vh;
    background-color: transparent;
    display: flex;
    flex-direction: column;
}

/* ========== 查询页面样式 (保持不变) ========== */
/* ... (查询页面样式代码略，如果需要修改查询页样式，请告诉我，这里主要关注结果页) ... */
/* 为了确保查询页正常，这里必须包含查询页的关键样式 */

.header {
    background-color: #fff;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #d0d0d0;
}

.back-btn {
    color: #007aff;
    font-size: 24px;
    text-decoration: none;
    font-weight: 300;
    width: 20px;
    line-height: 1;
}

.title {
    color: #000;
    font-size: 17px;
    font-weight: 400;
    flex: 1;
    text-align: center;
    margin-right: 20px;
    letter-spacing: 0.5px;
}

.main-content {
    padding: 25px 20px 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 50px 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 0;
}

.input-group {
    margin-bottom: 12px;
}

.query-input {
    width: 100%;
    height: 52px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 0 15px;
    font-size: 16px;
    color: #333;
    background-color: #e8e8e8;
    outline: none;
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.captcha-input {
    flex: 1 1 auto;
    min-width: 80px;
    height: 52px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 0 15px;
    font-size: 16px;
    color: #333;
    background-color: #e8e8e8;
    outline: none;
}

.captcha-canvas {
    width: 110px;
    min-width: 110px;
    height: 52px;
    cursor: pointer;
    flex-shrink: 0;
    background-color: #e8e8e8;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    touch-action: manipulation;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    margin-bottom: 40px;
}

.btn {
    flex: 1;
    height: 48px;
    border: none;
    border-radius: 2px;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}

.btn-primary {
    background-color: #154595;
    color: #fff;
}

.btn-secondary {
    background-color: #dcdcdc;
    color: #000;
    border: 1px solid #ccc;
}

.query-tips {
    padding: 0;
}

.query-tips h3 {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.query-tips p {
    font-size: 14px;
    color: #666;
    line-height: 2;
    margin: 0;
}


/* ========== 结果页面特有样式 ========== */

/* 页面子标题 */
.sub-header {
    background-color: #fff;
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

.sub-title {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sub-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #007aff;
    border-left: 2px solid #007aff;
    transform: rotate(-45deg);
    margin-right: 15px;
    margin-left: 5px;
}

/* 信息表格容器 */
.info-wrapper {
    padding: 15px;
    background-color: #fff;
    flex: 1;
    padding-bottom: 60px;
}

/* 信息表格 - 关键样式 */
.info-content {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden; /* 保证圆角 */
    font-size: 14px;
}

.info-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    min-height: 44px; /* 保证行高 */
}

.info-row:last-child {
    border-bottom: none;
}

/* 左侧标签 */
.info-label {
    width: 120px;
    min-width: 120px;
    padding: 12px 10px;
    background-color: #f7f7f7; /* 浅灰背景 */
    color: #666;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

/* 右侧内容 */
.info-value {
    flex: 1;
    padding: 12px 15px;
    color: #333;
    background-color: #fff;
    display: flex;
    align-items: center;
    word-break: break-all;
    line-height: 1.4;
}

/* 底部导航样式已移除 */

/* 加载和错误状态 */
.loading, .error-message {
    padding: 50px 20px;
    text-align: center;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top-color: #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.retry-btn {
    margin-top: 15px;
    padding: 8px 25px;
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

/* 响应式适配 */
@media screen and (min-width: 768px) {
    .container {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
        background-color: #fff;
    }
    
    .android-nav {
        max-width: 500px;
        margin: 0 auto;
    }
}
