:root {
    --bg: #f4f6f8;
    --fg: #1f2933;
    --mute: #6b7785;
    --pri: #2557d6;
    --bd: #d9dee5;
    --bad: #c53030;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.5 system-ui, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

header {
    background: #12284c;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.bar, nav, main {
    max-width: 760px;
    margin: 0 auto;
}

.bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
}

.brand {
    font-weight: 700;
}

nav {
    display: flex;
}

    nav a {
        flex: 1;
        text-align: center;
        padding: .7rem .2rem;
        color: #cfd9ee;
        text-decoration: none;
        border-bottom: 3px solid transparent;
    }

        nav a.on {
            color: #fff;
            border-color: #7aa2ff;
        }

main {
    padding: 1rem;
}

.title {
    text-align: center;
    margin: 1.5rem 0;
}

.center {
    text-align: center;
    padding: 2rem;
}

.mute {
    color: var(--mute);
    font-size: .9rem;
}

.card {
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: .8rem;
}

    .card h2, .card h3 {
        margin: .1rem 0 .6rem;
    }

label {
    display: block;
    margin-bottom: .8rem;
    font-weight: 600;
}

input:not([type=file]), select, textarea {
    display: block;
    width: 100%;
    margin-top: .3rem;
    padding: .65rem;
    font: inherit;
    border: 1px solid var(--bd);
    border-radius: 8px;
    background: #fff;
}

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .4rem 1rem;
    font: inherit;
    color: inherit;
    background: #fff;
    border: 1px solid var(--bd);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
}

    button:disabled {
        opacity: .5;
    }

.primary {
    background: var(--pri);
    color: #fff;
    border-color: var(--pri);
}

.danger {
    color: var(--bad);
    border-color: var(--bad);
}

.sm {
    min-height: 32px;
    padding: .1rem .6rem;
    font-size: .9rem;
}

.block {
    width: 100%;
    margin-bottom: 2rem;
}

header button {
    color: #fff;
    background: transparent;
    border-color: #7a8fb5;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .6rem;
}

    .row.between {
        justify-content: space-between;
        align-items: center;
        margin-top: 0;
    }

.grow {
    flex: 1;
}

.badge {
    padding: .1rem .6rem;
    border-radius: 99px;
    font-size: .85rem;
    white-space: nowrap;
}

.s0 {
    background: #e5e9ee;
    color: #4a5568;
}

.s1 {
    background: #fdf0d2;
    color: #8a5a00;
}

.s2 {
    background: #d7f2e2;
    color: #14663c;
}

.item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--bd);
}

    .item span {
        flex: 1;
        word-break: break-all;
    }

    .item input {
        width: 7rem;
        margin: 0;
    }

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
    gap: .5rem;
    margin-top: .8rem;
}

.thumb {
    position: relative;
}

    .thumb img {
        width: 100%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }

    .thumb button {
        position: absolute;
        top: 3px;
        right: 3px;
    }

img.full {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.ok {
    color: #14663c;
}

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