* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    padding: 20px 16px calc(80px + env(safe-area-inset-bottom));
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background: #f6fbff;
    color: #102033;
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    min-height: calc(100vh - 128px);
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: #20b0f6;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(210, 229, 240, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 -10px 28px rgba(16, 32, 51, 0.05);
}

.tabbar-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tab-item {
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 14px;
    color: #7b8b99;
    transition: color 0.18s ease, background 0.18s ease;
}

.tab-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.tab-item span {
    font-size: 12px;
    line-height: 1.2;
}

.tab-item.active {
    background: #eef9ff;
    color: #20b0f6;
}

@media (min-width: 768px) {
    body {
        padding-top: 28px;
        padding-bottom: 88px;
    }
}
