/* 转铺网前台公共样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    color: #1f2937;
}

::-webkit-scrollbar {
    display: none;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* 通用顶部渐变背景 */
.hero-gradient {
    position: relative;
    background:
        radial-gradient(circle at 8% 20%, rgba(128, 43, 228, 0.32) 0, rgba(128, 43, 228, 0.16) 24%, transparent 48%),
        radial-gradient(circle at 16% 18%, rgba(194, 145, 255, 0.42) 0, rgba(194, 145, 255, 0.12) 22%, transparent 44%),
        radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.05) 14%, transparent 32%),
        linear-gradient(180deg, #9559f7 0%, #8b4ef2 30%, #9657f5 68%, #d8b3ff 100%);
}

.hero-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
        repeating-radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 28px),
        radial-gradient(circle at 0% 18%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.06) 16%, transparent 36%);
    opacity: 0.5;
    pointer-events: none;
}

.hero-gradient::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 172px;
    background:
        linear-gradient(180deg, rgba(233, 218, 255, 0) 0%, rgba(191, 130, 255, 0.08) 10%, rgba(223, 189, 255, 0.2) 28%, rgba(239, 226, 251, 0.52) 48%, rgba(250, 249, 252, 0.88) 72%, #ffffff 100%);
    pointer-events: none;
}

.hero-haze {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: 42px;
    height: 128px;
    background:
        radial-gradient(ellipse at center, rgba(226, 194, 255, 0.42) 0%, rgba(214, 162, 255, 0.16) 30%, rgba(244, 231, 252, 0.06) 52%, transparent 74%);
    pointer-events: none;
    z-index: 1;
}

.hero-columns {
    position: absolute;
    left: 50%;
    bottom: 118px;
    width: 220px;
    height: 86px;
    transform: translateX(-50%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.22)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 8px);
    opacity: 0.3;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 42%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 42%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
    z-index: 1;
}

.safe-bottom {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
}

/* 表单页公共样式 */
.field-line {
    border-bottom: 1px solid #e6e6e6;
}

.placeholder-text::placeholder {
    color: #cfd5dd;
}

/* 标签选择器 */
.tag-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.feature-tag {
    height: 42px;
    border-radius: 9999px;
    background: #f1f1f1;
    color: #ff6b1c;
    font-size: 15px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.feature-tag.inactive-tag {
    color: #9ca3af;
}

.feature-tag.is-selected {
    background: #fff1e8;
    border-color: #ffb184;
    color: #e86a24;
}

.more-tag-toggle {
    color: #ff6b1c;
}

/* 协议复选框 */
.agreement-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    border: 1px solid #d4d4d8;
    background: #ffffff;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.agreement-checkbox:checked {
    background: #e67a3d;
    border-color: #e67a3d;
}

.agreement-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Picker 弹出层 */
.picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5a6472;
    font-size: 16px;
    background: transparent;
    border: none;
    padding: 0;
}

.picker-mask {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.35);
    z-index: 40;
}

.picker-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 10px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.12);
}

.picker-option {
    width: 100%;
    min-height: 52px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    font-size: 16px;
    color: #1f2937;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    text-align: center;
}
