/**
 * 永泰 - 下载页面样式
 * 依据设计图和尺寸说明重绘
 */

:root {
    --page-bg-top: #070724;
    --page-bg-bottom: #2b2b43;
    --text-main: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.78);
    --text-mute: #b8b8bf;
    --input-text: #6f7078;
    --input-bg: #ffffff;
    --button-left: #3e6ff3;
    --button-right: #63c5f2;
    --button-shadow: rgba(70, 120, 255, 0.26);
    --error: #ff8d8d;
    --success: #62dda9;
}

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

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, var(--page-bg-top) 0%, #121333 35%, #21233d 72%, var(--page-bg-bottom) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 58px 20px 18px;
}

.container {
    width: 100%;
    max-width: 375px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-wrapper {
    width: 104.8px;
    height: 104.8px;
    margin-bottom: 14px;
}

.logo {
    width: 104.8px;
    height: 104.8px;
    display: block;
    border-radius: 15px;
}

.title {
    font-size: 25px;
    line-height: 1.06;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hint {
    width: 256.73px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 46px;
}

.download-form {
    width: 314.4px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.field-group {
    width: 314.4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-field {
    width: 314.4px;
    height: 47.16px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--input-text);
    font-size: 15px;
    line-height: 47.16px;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.input-field::placeholder {
    color: var(--text-mute);
    opacity: 1;
}

.input-field:focus {
    box-shadow: 0 0 0 2px rgba(108, 167, 255, 0.35);
}

.download-btn {
    width: 314.4px;
    height: 52.4px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--button-left) 0%, var(--button-right) 100%);
    color: var(--text-main);
    font-size: 17px;
    line-height: 52.4px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 12px 20px var(--button-shadow);
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.lookup-btn {
    width: 314.4px;
    height: 36px;
    border: 1px solid rgba(102, 149, 255, 0.52);
    border-radius: 8px;
    background: rgba(15, 21, 54, 0.45);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.lookup-btn:hover {
    opacity: 0.96;
    border-color: rgba(123, 175, 255, 0.75);
}

.lookup-btn:active {
    transform: scale(0.992);
}

.lookup-btn:disabled {
    cursor: wait;
    opacity: 0.88;
}

.lookup-msg {
    min-height: 18px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: var(--text-soft);
}

.lookup-msg--error {
    color: var(--error);
}

.lookup-msg--success {
    color: var(--success);
}

.download-btn:hover {
    opacity: 0.97;
}

.download-btn:active {
    transform: scale(0.985);
}

.download-btn:disabled {
    cursor: wait;
    opacity: 0.92;
    box-shadow: 0 8px 18px rgba(70, 120, 255, 0.2);
}

.error-msg,
.success-msg {
    width: 314.4px;
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
}

.error-msg {
    color: var(--error);
}

.success-msg {
    color: var(--success);
}

.footer {
    width: 100%;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.46);
}

@media (max-width: 374px) {
    .page-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .download-form,
    .field-group,
    .input-field,
    .lookup-btn,
    .download-btn,
    .error-msg,
    .success-msg {
        width: 100%;
    }

    .hint {
        width: 100%;
    }
}

@media (min-height: 740px) {
    .page-shell {
        padding-top: 58px;
        padding-bottom: 19px;
    }
}
