* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
        "Microsoft YaHei", Arial, sans-serif;
    background: #f0f4f8;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.page {
    min-height: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 48px 20px 40px;
}

.header {
    text-align: center;
    margin-bottom: 28px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2f80ed;
    letter-spacing: 1px;
    line-height: 1.3;
}

.header .subtitle {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(47, 128, 237, 0.06);
}

.search-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #a8c8f0;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    color: #333;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}

.search-input::placeholder {
    color: #b0b8c4;
}

.search-input:focus {
    border-color: #2f80ed;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border: none;
    border-radius: 10px;
    background: #2f80ed;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn-primary:active {
    background: #2569c7;
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary .icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    fill: currentColor;
}

.guide-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.guide-list {
    list-style: none;
}

.guide-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #555;
}

.guide-list li:last-child {
    margin-bottom: 0;
}

.guide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2f80ed;
}

.result-card {
    display: none;
}

.result-card.show {
    display: block;
}

.result-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.result-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}

.result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-row .label {
    width: 72px;
    color: #888;
    flex-shrink: 0;
}

.result-row .value {
    color: #222;
    word-break: break-all;
}

.toast {
    position: fixed;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.toast.show {
    opacity: 1;
}

/* admin */
.admin-page {
    max-width: 520px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
}

.form-group .required {
    color: #e74c3c;
    margin-left: 2px;
}

.msg {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 20px;
}

.msg.success {
    color: #27ae60;
}

.msg.error {
    color: #e74c3c;
}
