:root {
    --green: #22c765;
    --green-dark: #18b85a;
    --bg: #f5f5f5;
    --text: #071321;
    --muted: #9aa3ad;
    --line: #edf0f2;
    --card: #fff;
    --orange: #f6a000;
    --blue: #2e80ff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.phone-shell {
    width: min(100vw, 520px);
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    overflow: hidden;
    position: relative;
    padding-bottom: 78px;
}

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px 8px;
}

.topbar-title {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

.back {
    width: 28px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 30px;
    line-height: 1;
}

.capsule {
    min-width: 146px;
    height: 40px;
    border: 1px solid #e3e3e3;
    border-radius: 21px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-weight: 800;
}

.capsule span {
    padding: 0 10px;
}

.capsule span + span {
    border-left: 1px solid #dadada;
}

.logo {
    font-size: 34px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -1px;
}

.home-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 12px;
}

.home-head .location {
    flex: 1;
    color: #3d4853;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search {
    font-size: 28px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px 10px;
    text-align: center;
}

.quick-icon {
    width: 72px;
    height: 62px;
    margin: 0 auto 6px;
    border-radius: 12px;
    background: #fff;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 34px;
}

.banner {
    height: 108px;
    margin: 0 16px 18px;
    border-radius: 18px;
    background: linear-gradient(100deg, #91d9ed, #f4f7d8 45%, #55d96b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    text-shadow: 0 2px 3px rgba(0,0,0,.2);
}

.category-strip,
.tabs {
    display: flex;
    gap: 16px;
    overflow: auto;
    padding: 0 16px 12px;
}

.category-item {
    min-width: 82px;
    text-align: center;
}

.round-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 6px;
    color: var(--green);
    background: #eaf9ee;
    font-size: 25px;
}

.category-item.active .round-icon {
    background: #dff7e6;
}

.category-item.active span {
    background: var(--green);
    color: #fff;
    border-radius: 16px;
    padding: 3px 10px;
}

.card {
    background: var(--card);
    border-radius: 24px;
    margin: 12px 10px;
    padding: 22px;
}

.list-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    min-height: 220px;
    align-items: start;
}

.cover {
    width: 150px;
    height: 170px;
    border-radius: 12px;
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
    padding: 12px;
    overflow: hidden;
    position: relative;
}

.cover.small {
    width: 116px;
    height: 116px;
}

.pre-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,.32);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 14px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 18px;
}

.badge {
    color: #fff;
    background: var(--orange);
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 15px;
}

.badge.blue {
    background: var(--blue);
}

.badge.yellow {
    background: #ffc400;
}

.list-card h3 {
    margin: 6px 0 0;
    font-size: 22px;
    line-height: 1.18;
}

.muted {
    color: var(--muted);
}

.line-text {
    color: #168cff;
    margin: 14px 0 10px;
}

.join-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #17212b;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #123;
    background: #b9ebe2;
    overflow: hidden;
    font-size: 24px;
    vertical-align: middle;
}

.avatar.logo {
    background: #21ccd7;
    color: #031118;
    font-size: 20px;
}

.primary-btn,
.secondary-btn,
.danger-btn {
    height: 54px;
    border-radius: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    width: 100%;
    font-size: 18px;
}

.primary-btn {
    background: var(--green);
    color: #fff;
}

.secondary-btn {
    background: #fff;
    border: 1px solid #333;
    color: #111;
}

.danger-btn {
    background: #f7656b;
    color: #fff;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100vw, 520px);
    height: 68px;
    background: #fff;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #eee;
    z-index: 20;
}

.bottom-nav button {
    color: #777;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 13px;
}

.bottom-nav .plus {
    width: 74px;
    height: 42px;
    margin: 0 auto;
    border-radius: 18px;
    background: var(--green);
    color: #fff;
    font-size: 36px;
    line-height: 38px;
}

.bottom-nav .active {
    color: var(--green);
    font-weight: 700;
}

.section-card {
    background: #fff;
    border-radius: 26px;
    margin: 16px 10px;
    padding: 20px 22px;
}

.section-title {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 800;
}

.row {
    min-height: 64px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.row:last-child {
    border-bottom: 0;
}

.row label,
.row .label {
    flex: 1;
    font-size: 20px;
}

.value {
    color: #071321;
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.placeholder {
    color: #b4bdc8;
}

.chev {
    font-size: 28px;
    color: #102031;
}

.switch {
    width: 54px;
    height: 28px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 2px;
    position: relative;
}

.switch::after {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
    display: block;
}

.switch.on {
    background: var(--green);
    border-color: var(--green);
}

.switch.on::after {
    transform: translateX(25px);
}

.stepper {
    display: flex;
    height: 38px;
}

.stepper button,
.stepper span {
    width: 42px;
    display: grid;
    place-items: center;
    background: #f1f2f4;
    margin-left: 3px;
    font-size: 24px;
}

.stepper span {
    font-size: 18px;
    font-weight: 700;
}

.footer-action {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(calc(100vw - 40px), 480px);
    z-index: 15;
}

.progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 8px;
}

.bar {
    width: 30px;
    height: 5px;
    border-radius: 5px;
    background: #e1e1e1;
}

.bar.on {
    background: var(--green);
}

.step-note {
    text-align: center;
    color: #9aa3ad;
}

.type-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px;
    margin: 20px 10px;
    min-height: 132px;
    border: 2px solid transparent;
}

.type-card.active {
    border-color: var(--green);
    background: #f7fbf7;
}

.type-card h3 {
    font-size: 23px;
    margin: 0 0 12px;
}

.textarea-card {
    min-height: 338px;
}

textarea,
input {
    border: 0;
    outline: none;
    background: transparent;
    width: 100%;
    color: var(--text);
}

textarea {
    resize: none;
    min-height: 180px;
    font-size: 19px;
}

.upload-box {
    width: 94px;
    height: 94px;
    border-radius: 2px;
    background: #f0f1f4;
    display: grid;
    place-items: center;
    color: #c2c8cf;
    font-size: 28px;
}

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.48);
    z-index: 30;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal {
    width: min(100vw, 520px);
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 20px 12px 24px;
    max-height: 76vh;
    overflow: auto;
}

.modal-head {
    display: flex;
    align-items: center;
}

.modal-head h2 {
    flex: 1;
    margin: 0 0 14px 8px;
}

.x {
    color: #8792a0;
    font-size: 36px;
}

.category-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-picker button {
    height: 50px;
    background: #f6f6f6;
    border-radius: 8px;
    font-size: 20px;
}

.time-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    color: #333;
    margin: 120px 0 34px;
}

.time-picker div {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
    font-size: 20px;
}

.success {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 28px 80px;
}

.check {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    color: var(--green);
    display: grid;
    place-items: center;
    font-size: 72px;
    margin-bottom: 28px;
}

.success h1 {
    margin: 0 0 16px;
    font-size: 28px;
}

.success p {
    color: #657286;
    font-size: 18px;
    margin-bottom: 92px;
}

.detail-head {
    display: grid;
    grid-template-columns: 156px 1fr;
    gap: 12px;
    padding: 10px 6px 6px;
}

.owner-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.credit {
    color: #0fbd4f;
    margin-left: auto;
    font-weight: 700;
}

.member-grid {
    display: flex;
    gap: 22px;
    align-items: center;
}

.member-grid .m {
    width: 70px;
    text-align: center;
}

.member-grid small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-footer {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100vw, 520px);
    height: 68px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr 156px 156px;
    gap: 10px;
    align-items: center;
    padding: 8px 6px;
    z-index: 20;
}

.detail-footer .secondary-btn {
    border: 0;
    background: #e8e8e8;
}

.profile-head {
    display: grid;
    grid-template-columns: 92px 1fr 76px;
    gap: 14px;
    align-items: center;
    padding: 24px 16px 18px;
}

.profile-head h2 {
    margin: 0 0 4px;
}

.manual {
    margin: 0 6px 16px;
    background: var(--green);
    color: #fff;
    border-radius: 14px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    font-size: 20px;
    font-weight: 700;
}

.group-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.group-icons .round-icon {
    width: 54px;
    height: 54px;
}

.settings-row {
    min-height: 56px;
    display: flex;
    align-items: center;
    font-size: 20px;
}

.settings-row span:first-child {
    flex: 1;
}

.message-card {
    display: grid;
    grid-template-columns: 70px 1fr 78px;
    align-items: center;
    gap: 14px;
    padding: 16px 8px;
}

.message-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #15c4c7;
    color: #fff;
    font-size: 30px;
}

.message-icon.orange {
    background: #ff8542;
}

.dot {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e9424d;
    color: #fff;
    font-size: 12px;
}

.recruit-card {
    min-height: 250px;
    position: relative;
}

.recruit-card .avatar {
    position: absolute;
    right: 32px;
    top: 28px;
    width: 84px;
    height: 84px;
}

.tag-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 12px;
}

.tag-boxes div {
    background: #ddd;
    color: #5f6871;
    border-radius: 13px;
    padding: 8px 4px;
    text-align: center;
}

.empty {
    text-align: center;
    color: #aab1ba;
    margin: 40px 0;
}

.about-logo {
    color: var(--green);
    text-align: center;
    font-weight: 900;
    font-style: italic;
    font-size: 54px;
    line-height: 1;
}

.copyright {
    text-align: center;
    color: #b5bbc2;
    margin-top: 44px;
}

.auth-page {
    min-height: 100vh;
    padding: 88px 24px 32px;
    background: #f5f5f5;
}

.auth-brand {
    color: var(--green);
    font-size: 58px;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin-bottom: 18px;
}

.auth-page h1 {
    font-size: 30px;
    margin: 0 0 8px;
}

.auth-card {
    background: #fff;
    border-radius: 24px;
    padding: 20px;
    margin-top: 24px;
}

.auth-card label {
    display: block;
    margin-bottom: 16px;
    color: #344054;
    font-weight: 700;
}

.auth-card input {
    display: block;
    height: 48px;
    margin-top: 8px;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 420px) {
    .list-card {
        grid-template-columns: 120px 1fr;
    }
    .cover {
        width: 120px;
        height: 150px;
    }
    .topbar-title {
        font-size: 18px;
    }
    .capsule {
        min-width: 138px;
    }
}
