:root {
    --primary-green: #0f7a5f;
    --primary-green-dark: #0a5c48;
    --primary-green-light: #1a9a7a;
    --bg-green: #e8f5f1;
    --bg-green-light: #f0f9f6;
    --input-bg: rgba(255, 255, 255, 0.75);
    --text-green: #0d6b52;
    --text-dark: #0a4a39;
    --text-light: #5a9a89;
    --white: #ffffff;
    --shadow: rgba(15, 122, 95, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    height: 100vh;
    background: url('/static/images/bk.png') no-repeat center center / cover;
    color: var(--text-dark);
    overflow: hidden;
}

/* ===== 页面容器 ===== */
.page-wrapper {
    position: relative;
    height: 100vh;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== 顶部 Header ===== */
.header {
    width: 100%;
    padding: 0;
    text-align: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.logo-img-full {
    width: 100%;
    max-width: 750px;
    height: auto;
    display: block;
    margin: auto;
}

/* ===== 主内容区 ===== */
.main-content {
    flex: 1;
    width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.page-title {
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    color: var(--text-green);
    letter-spacing: 3px;
    margin-bottom: 26px;
}

/* ===== 查询输入区 ===== */
.search-box {
    margin-bottom: 28px;
}

.input-label {
    display: block;
    text-align: center;
    font-size: 15px;
    color: var(--text-green);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.input-field {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    color: var(--text-dark);
    background: rgba(26, 154, 122, 0.12);
    border: none;
    border-radius: 10px;
    outline: none;
    text-align: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.input-field:focus {
    background: rgba(26, 154, 122, 0.2);
    box-shadow: 0 4px 16px var(--shadow);
}

.input-field::placeholder {
    color: rgba(13, 107, 82, 0.35);
}

.confirm-btn {
    display: block;
    width: 55%;
    margin: 0 auto;
    padding: 11px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    background: var(--primary-green);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    letter-spacing: 4px;
    text-indent: 4px;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: var(--primary-green-dark);
}

.confirm-btn:active {
    transform: scale(0.98);
}

/* ===== 加载状态 ===== */
.loading {
    text-align: center;
    padding: 16px;
    margin-bottom: 16px;
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(26, 154, 122, 0.25);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 8px;
}

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

.loading p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== 错误提示 ===== */
.error-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.error-message p {
    font-size: 14px;
    color: #c62828;
    line-height: 1.5;
}

/* ===== 结果展示 ===== */
.result-section {
    padding: 10px 0;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-item {
    display: flex;
    align-items: baseline;
    padding: 8px 0;
}

.info-title {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-green);
    line-height: 1.6;
}

.info-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
    word-break: break-all;
    padding-left: 8px;
}

/* ===== 响应式适配 ===== */
@media (max-width: 375px) {
    .page-wrapper {
        padding: 0 40px;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .info-title {
        width: 100px;
        font-size: 14px;
    }

    .info-text {
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .page-wrapper {
        padding: 0 40px;
    }

    .main-content {
        max-width: 520px;
    }
}
