/* KeLu - 打卡报名表（背景 lucky/1pageImage/bg.jpg） */

:root {
    --page-bg-black: #000000;
    --input-bg: rgba(12, 22, 40, 0.72);
    --input-border: rgba(120, 200, 255, 0.35);
    --input-border-focus: rgba(100, 220, 255, 0.65);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.78);
}

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

html {
    min-height: 100%;
    background-color: var(--page-bg-black);
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--page-bg-black);
    background-image: url('../lucky/1pageImage/bg.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--text-main);
}

.index-main {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 6px 20px 48px;
    box-sizing: border-box;
    position: relative;
}

.index-main > * {
    position: relative;
    z-index: 1;
}

.index-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -6px;
    margin-bottom: 63px;
    padding-top: max(4px, env(safe-area-inset-top, 0px));
    min-height: 56px;
}

/* 左上角：完整字标（再略缩小） */
.index-logo-full {
    flex: 0 1 auto;
    height: clamp(22px, 6.5vw, 30px);
    width: auto;
    max-width: 62%;
    object-fit: contain;
    object-position: left center;
}

/* 右上角：图形标（相对原先约 1.5 倍） */
.index-logo-mark {
    flex: 0 0 auto;
    height: clamp(57px, 16.5vw, 78px);
    width: clamp(57px, 16.5vw, 78px);
    object-fit: contain;
    object-position: center center;
}

.index-hero-title {
    font-size: clamp(31px, 9vw, 41px);
    font-weight: 900;
    text-align: center;
    color: #fff;
    margin: 27px 0 14px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-shadow: 0 4px 24px rgba(80, 160, 255, 0.25);
}

.index-hero-sub {
    font-size: clamp(13px, 3.72vw, 17px);
    line-height: 1.35;
    text-align: center;
    color: #fff;
    font-weight: 600;
    margin: 0 0 32px;
    padding: 0 2px;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.form-content {
    width: 90%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.index-form .form-group {
    margin-bottom: 27px;
}

/* 前缀「姓名：」等始终显示，输入内容在后半段（非 placeholder） */
.form-field {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border-radius: 12.6px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* 与打卡页 daka-row 一致：上、下边缘横向高亮描边 */
.form-field::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 1px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(120, 200, 255, 0.25) 22%,
        rgba(200, 240, 255, 1) 50%,
        rgba(120, 200, 255, 0.25) 78%,
        transparent 100%
    );
    box-shadow: 0 3px 14px rgba(100, 210, 255, 0.55);
    transition: filter 0.2s;
}

.form-field::after {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 1px;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(120, 200, 255, 0.25) 22%,
        rgba(200, 240, 255, 1) 50%,
        rgba(120, 200, 255, 0.25) 78%,
        transparent 100%
    );
    box-shadow: 0 -3px 14px rgba(100, 210, 255, 0.55);
    transition: filter 0.2s;
}

.form-field > * {
    position: relative;
    z-index: 1;
}

.form-field:focus-within,
.form-field.is-open {
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(80, 180, 255, 0.2);
}

.form-field:focus-within::before,
.form-field:focus-within::after,
.form-field.is-open::before,
.form-field.is-open::after {
    filter: brightness(1.12);
}

/* 下拉展开时勿裁切向上弹出的菜单 */
.form-field.form-field--select.is-open {
    overflow: visible;
}

.form-field__prefix {
    flex: 0 0 auto;
    align-self: center;
    color: #fff;
    font-size: 14.4px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    padding: 12.6px 4px 12.6px 14px;
}

.form-field--select .form-field__prefix {
    font-size: 13px;
    padding-right: 2px;
}

.form-field__control {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14.4px;
    font-weight: 300;
    line-height: 1.35;
    padding: 12.6px 14px 12.6px 6px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-field__control::placeholder {
    color: transparent;
}

/* 自定义下拉：与输入区同宽，弹出层可统一样式 */
.custom-select {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.custom-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.custom-select__trigger {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 100%;
    width: 100%;
    margin: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14.4px;
    font-weight: 300;
    font-family: inherit;
    line-height: 1.35;
    padding: 12.6px 32px 12.6px 6px;
    text-align: left;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8d4ff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.custom-select__trigger:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(100, 220, 255, 0.45);
    border-radius: 4px;
}

.custom-select__value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__value:empty::before {
    content: '\00a0';
}

.custom-select__menu {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    top: auto;
    z-index: 40;
    background: linear-gradient(165deg, rgba(18, 32, 58, 0.97) 0%, rgba(8, 16, 32, 0.98) 100%);
    border: 1px solid rgba(130, 210, 255, 0.42);
    border-radius: 12px;
    box-shadow:
        0 -12px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(80, 180, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: min(260px, 52vh);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-select__option {
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.custom-select__option:hover,
.custom-select__option:focus-visible {
    background: rgba(80, 180, 255, 0.22);
    color: #fff;
    outline: none;
}

.custom-select__option:active {
    background: rgba(80, 180, 255, 0.32);
}

.form-buttons {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.form-btn.submit {
    width: 33.333%;
    max-width: 200px;
    padding: 8px 12px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    background: rgba(30, 50, 90, 0.55);
    border: 1px solid rgba(150, 220, 255, 0.55);
    box-shadow: 0 0 24px rgba(80, 180, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.15s, box-shadow 0.2s;
}

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

@media (max-width: 380px) {
    .index-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .index-hero-title {
        font-size: clamp(27px, 8.6vw, 36px);
    }

    .index-hero-sub {
        font-size: clamp(12px, 3.5vw, 16px);
    }
}
