/* ==========================================================================
   JNU 微服务复刻 · 基础样式
   设计基准：390px 宽手机视图，1rem = 16px（随视口等比缩放，最大 22px）
   ========================================================================== */

:root {
    --navy: #00016b;
    --text: #333333;
    --muted: #666666;
    --grey: #aaaaaa;
    --line: #e5e5e5;
    --bg: #f7f6fa;
    --bg-grey: #ebebeb;
    --blue: #01a7fd;
    --red: #ed4236;
    --pink: #f8507f;
    --indigo: #3f4097;
    --font-cn: -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* 原站为固定 px 布局：1rem = 16px，所有 rem 换算即原站像素值 */
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-cn);
    color: var(--text);
    background: #e4e4ea;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    border: 0;
    display: block;
}

button {
    font-family: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 手机壳：桌面端居中 ------------------------------------------------ */
.shell {
    position: relative;
    width: 100%;
    max-width: 536px;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
    background: var(--bg);
}

/* 底部固定占位 ------------------------------------------------------ */
.shell--tabbar {
    padding-bottom: calc(3.0625rem + env(safe-area-inset-bottom));
}

/* 顶部返回栏 -------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    height: 2.75rem;
    padding: 0 0.75rem;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.navbar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: -0.5rem;
}

.navbar__back svg {
    width: 1.2rem;
    height: 1.2rem;
}

.navbar__title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

/* 轻提示 ------------------------------------------------------------ */
.toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 999;
    max-width: 70%;
    padding: 0.6rem 0.9rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: center;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.toast.is-visible {
    opacity: 1;
}
