/* 手机端精确复刻 jndj.osta.org.cn 样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

/* 顶部栏 */
.top-bar {
    width: 100%;
    background-color: #f5f5f5;
    padding: 10px 16px;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
}

/* 查询卡片 */
.query-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px 20px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.main-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e2b3c;
    text-align: center;
    margin-bottom: 6px;
}

.sub-title {
    font-size: 14px;
    color: #7a8b9f;
    text-align: center;
    margin-bottom: 24px;
}

/* 输入框包装器 */
.input-wrapper {
    margin-bottom: 16px;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    transition: border 0.1s;
}

.input-wrapper select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px;
    color: #666;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: #2d7aff;
    box-shadow: 0 0 0 3px rgba(45,122,255,0.1);
}

.input-wrapper input::placeholder,
.input-wrapper select option:disabled {
    color: #999;
    font-size: 15px;
}

/* 查询按钮 */
.query-btn {
    width: 100%;
    height: 48px;
    background-color: #2d7aff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    cursor: pointer;
    transition: background 0.1s;
    border: 1px solid #2d7aff;
}

.query-btn:hover {
    background-color: #1a5fd0;
}

/* 底部说明 */
.footer-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eceef2;
    font-size: 12px;
    color: #7a8b9f;
    line-height: 1.7;
}

/* 结果页样式 */
.result-card .back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #2d7aff;
    text-decoration: none;
    margin-bottom: 20px;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #eceef2;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.cert-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1e2b3c;
}

.cert-no {
    font-size: 13px;
    color: #7a8b9f;
    background: #f0f2f5;
    padding: 4px 12px;
    border-radius: 30px;
    white-space: nowrap;
}

.photo-box {
    text-align: center;
    margin: 16px 0;
}

.photo-box img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 6px;
    border: 1px solid #eceef2;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f8f9fc;
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
}

.info-table tr {
    border-bottom: 1px solid #eceef2;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th {
    width: 90px;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #5f6f80;
    text-align: left;
    background: #f8f9fc;
}

.info-table td {
    padding: 14px 12px;
    font-size: 15px;
    color: #1e2b3c;
    background: white;
}

.award-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.award-item {
    background: #f8f9fc;
    border-radius: 6px;
    padding: 14px 12px;
}

.award-label {
    display: block;
    font-size: 12px;
    color: #7a8b9f;
    margin-bottom: 4px;
}

.award-value {
    font-size: 16px;
    font-weight: 500;
    color: #1e2b3c;
}

.award-value.highlight {
    color: #d96c4e;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f2f5;
    border-radius: 40px;
    padding: 10px 16px;
    margin: 20px 0;
}

.stamp {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2d7aff;
    font-size: 13px;
}

.query-count {
    color: #7a8b9f;
    font-size: 12px;
}

.issuer-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #5f6f80;
    margin: 20px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #eceef2;
}

.action-row {
    display: flex;
    gap: 12px;
}

.action-btn {
    flex: 1;
    height: 44px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #2d7aff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.1s;
}

.action-btn:hover {
    background: #f0f2f5;
}

.error-box {
    text-align: center;
    padding: 32px 16px;
}

.error-box i {
    font-size: 48px;
    color: #d96c4e;
    margin-bottom: 12px;
}

.error-box p {
    font-size: 15px;
    color: #5f6f80;
    margin-bottom: 20px;
}

.btn-back {
    display: inline-block;
    padding: 10px 28px;
    background: #2d7aff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
}

@media (min-width: 421px) {
    .container {
        max-width: 420px;
    }
}