* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: #1f2329;
    background: #f5f7fb;
}

body {
    -webkit-font-smoothing: antialiased;
}

.page {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 20px 60px rgba(26, 35, 61, .08);
    position: relative;
    overflow: hidden;
}

.hero {
    position: relative;
    height: 226px;
    padding: 32px 24px 22px;
    overflow: hidden;
    background: linear-gradient(135deg, #1f7bff 0%, #6a35ff 54%, #8f3dff 100%);
    color: #fff;
}

.hero.small {
    height: 188px;
}

.hero::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -58px;
    height: 118px;
    border-radius: 50% 50% 0 0;
    background: #fff;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 3;
    padding-top: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: .08em;
    color: rgba(255, 255, 255, .92);
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(12px);
}

h1 {
    margin: 18px 0 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .02em;
}

.hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .9);
}

.bubble {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, .24);
    z-index: 2;
}

.b1 {
    width: 88px;
    height: 88px;
    right: 28px;
    top: 30px;
}

.b2 {
    width: 34px;
    height: 34px;
    right: 128px;
    top: 112px;
}

.b3 {
    width: 62px;
    height: 62px;
    left: -18px;
    top: 78px;
}

.card {
    position: relative;
    z-index: 4;
    margin: -42px 18px 0;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(31, 80, 160, .12);
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 5px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: #f1f4fb;
}

.tab {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 42px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #626b7a;
    font-size: 14px;
}

.tab.active {
    color: #1457ff;
    background: #fff;
    box-shadow: 0 6px 20px rgba(61, 99, 190, .12);
}

.notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.7;
}

.notice.success {
    color: #0f7a46;
    background: #eafaf2;
    border: 1px solid #c9f1da;
}

.notice.error {
    color: #b42318;
    background: #fff0f0;
    border: 1px solid #ffd2d2;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 800;
    color: #1f2329;
}

label em {
    color: #f04438;
    font-style: normal;
}

.help {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.6;
    color: #737b8c;
}

.input-wrap {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #d9dfeb;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.input-wrap:focus-within,
textarea:focus {
    border-color: #1457ff;
    box-shadow: 0 0 0 4px rgba(20, 87, 255, .08);
}

.icon {
    width: 26px;
    margin-right: 9px;
    color: #7c8596;
    font-size: 19px;
    text-align: center;
}

input,
textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #1f2329;
    font-size: 16px;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: #a6adbb;
}

textarea {
    display: block;
    min-height: 138px;
    padding: 14px;
    resize: vertical;
    border-radius: 14px;
    border: 1px solid #d9dfeb;
    line-height: 1.65;
}

.counter {
    margin-top: 7px;
    text-align: right;
    color: #9aa2b1;
    font-size: 12px;
}

.btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: .04em;
    cursor: pointer;
}

.btn.primary {
    color: #fff;
    background: linear-gradient(135deg, #1457ff 0%, #1167ff 100%);
    box-shadow: 0 12px 26px rgba(20, 87, 255, .25);
}

.btn.primary:active {
    transform: translateY(1px);
}

.search-form {
    padding-bottom: 4px;
}

.result-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #edf0f6;
}

.result-title {
    margin-bottom: 12px;
    color: #5c6575;
    font-size: 14px;
    font-weight: 700;
}

.message-card {
    margin-bottom: 12px;
    padding: 15px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border: 1px solid #edf1fb;
}

.message-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.message-top strong {
    display: block;
    margin-top: 3px;
    font-size: 17px;
    color: #1f2329;
}

.mini-label {
    display: block;
    color: #8b95a7;
    font-size: 12px;
}

time {
    flex: 0 0 auto;
    color: #9aa2b1;
    font-size: 12px;
}

.message-content {
    padding: 13px;
    border-radius: 14px;
    line-height: 1.75;
    color: #343b49;
    font-size: 15px;
    background: #fff;
    border: 1px dashed #dce4f2;
    word-break: break-word;
}

.empty {
    padding: 28px 16px 22px;
    text-align: center;
    color: #7a8393;
}

.empty-icon {
    margin-bottom: 10px;
    font-size: 42px;
}

.empty h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #2b313d;
}

.empty p {
    margin: 0;
    font-size: 14px;
}

.footer {
    padding: 18px 16px 26px;
    text-align: center;
    color: #a0a7b5;
    font-size: 12px;
}

@media (max-width: 360px) {
    .card {
        margin-left: 12px;
        margin-right: 12px;
        padding: 15px;
    }

    h1 {
        font-size: 29px;
    }
}

.safe-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 16px;
    padding: 12px 13px;
    border-radius: 16px;
    background: #f6f8ff;
    border: 1px solid #e4eaff;
}

.safe-icon {
    flex: 0 0 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    color: #1457ff;
    background: #e9efff;
    font-size: 13px;
    font-weight: 900;
}

.safe-tip strong {
    display: block;
    margin-bottom: 3px;
    color: #25314d;
    font-size: 14px;
}

.safe-tip p {
    margin: 0;
    color: #68738a;
    font-size: 12px;
    line-height: 1.65;
}
