:root {
    /* 橘黄主题 */
    --primary: #fa8c16;              /* 主色（橘） */
    --primary-1: #ffb84d;            /* 渐变起始（橘黄） */
    --primary-shadow: rgba(250, 140, 22, 0.28);
    --primary-shadow-active: rgba(250, 140, 22, 0.18);
    --primary-disabled: #ffd8a6;     /* 禁用态 */
    --primary-glow: rgba(250, 140, 22, 0.14); /* 输入框聚焦光晕 */
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: radial-gradient(1200px 600px at 10% 0%, #fff1f0 0%, #fff 45%),
        linear-gradient(180deg, #f9fbff 0%, #f7f8fa 100%);
    color: #222;
}

.page {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.hero {
    position: relative;
}

.banner {
    width: 100%;
    display: block;
}


.hero-title {
    position: absolute;
    left: 16px;
    bottom: 14px;
    right: 16px;
    color: #fff;
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
}

.content {
    flex: 1;
    padding: 16px 16px 24px;
}

.card {
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(17, 38, 146, 0.08);
    padding: 18px;
    animation: floatIn .5s ease both;
}

.title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    color: #1f2f50;
}

.form-item {
    margin-bottom: 14px;
}

.label {
    font-size: 13px;
    color: #6b7480;
    margin-bottom: 6px;
}

.input,
.row {
    display: flex;
    align-items: center;
}

.input-wrap {
    position: relative;
}

.icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: .7;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

input[type="text"],
input[type="tel"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    height: 46px;
    padding: 0 12px 0 38px;
    font-size: 16px;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    background: #fff;
    outline: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .06s ease;
}

input::placeholder {
    color: #aaa;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input:active {
    transform: scale(0.998);
}

.code-row {
    gap: 8px;
}

.btn-code {
    white-space: nowrap;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary) 100%);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 18px var(--primary-shadow);
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-code[disabled] {
    background: var(--primary-disabled);
    border-color: var(--primary-disabled);
    color: #fff;
    box-shadow: none;
}

.btn-code:active {
    transform: translateY(1px);
    box-shadow: 0 4px 10px var(--primary-shadow-active);
}

.btn-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-1) 0%, var(--primary) 100%);
    border: 1px solid var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .5px;
    margin-top: 10px;
    box-shadow: 0 14px 28px var(--primary-shadow);
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 8px 18px var(--primary-shadow-active);
}

.btn-submit[disabled] {
    background: var(--primary-disabled);
    border-color: var(--primary-disabled);
    box-shadow: none;
}

.tips {
    color: #999;
    font-size: 12px;
    margin-top: 10px;
    line-height: 1.4;
}

/* Safe area for iOS bottom */
.safe-bottom {
    height: env(safe-area-inset-bottom);
}

/* Simple entrance animation */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icons via data-uri */
.icon.icon-name {
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 12c2.761 0 5-2.239 5-5s-2.239-5-5-5-5 2.239-5 5 2.239 5 5 5Z" fill="%238aa1b1"/><path d="M4 22c0-4.418 3.582-8 8-8s8 3.582 8 8" stroke="%238aa1b1" stroke-width="2" stroke-linecap="round"/></svg>');
}

.icon.icon-phone {
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.6 10.8c1.2 2.4 3.2 4.4 5.6 5.6l2-2c.3-.3.8-.4 1.2-.3 1 .3 2.1.5 3.2.5.6 0 1 .4 1 .9V20c0 .6-.4 1-1 1C9.7 21 3 14.3 3 6c0-.6.4-1 1-1h4.5c.5 0 .9.4.9 1 0 1.1.2 2.2.5 3.2.1.4 0 .9-.3 1.2l-2 2Z" fill="%238aa1b1"/></svg>');
}

.icon.icon-code {
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="7" width="18" height="10" rx="2" stroke="%238aa1b1" stroke-width="2"/><path d="M7 12h10" stroke="%238aa1b1" stroke-width="2" stroke-linecap="round"/></svg>');
}

.icon.icon-user {
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z" fill="%238aa1b1"/><path d="M4 20a8 8 0 1 1 16 0" stroke="%238aa1b1" stroke-width="2" stroke-linecap="round"/></svg>');
}

.icon.icon-location {
    background-image: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12 22s7-6.5 7-12a7 7 0 1 0-14 0c0 5.5 7 12 7 12Z" stroke="%238aa1b1" stroke-width="2"/><circle cx="12" cy="10" r="3" fill="%238aa1b1"/></svg>');
}

/* Unified Modal & Toast */
.ui-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    padding: 24px;
    height: 100vh;
    min-height: 100vh;
}

.ui-dialog {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    margin: 0 auto;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: floatIn .2s ease both;
}

.ui-dialog__header {
    padding: 14px 16px 0;
}

.ui-dialog__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2f50;
}

.ui-dialog__body {
    padding: 10px 16px 16px;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.5;
    overflow: auto;
}

.ui-dialog__footer {
    display: flex;
    gap: 12px;
    padding: 0 16px 16px;
}

.ui-btn {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: linear-gradient(135deg, var(--primary-1), var(--primary));
    color: #fff;
    font-weight: 700;
}

.ui-btn--plain {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.ui-hidden {
    display: none !important;
}

.ui-toast-wrap {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    display: flex;
    justify-content: center;
    z-index: 1001;
    pointer-events: none;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

.ui-toast {
    display: inline-block;
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
}

.ui-toast--show {
    opacity: 1;
    transform: translateY(0);
}