:root{--rpx:calc(100vw / 750)}*{box-sizing:border-box}body{margin:0;background:#f5f5f5;color:#333;font-family:Arial,"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",sans-serif;font-size:calc(28 * var(--rpx))}button,input,textarea,select{font:inherit}button{display:block;margin:0 auto;padding:0 14px;border:0;border-radius:5px;line-height:2.5556;background:#f8f8f8;color:#000;text-align:center;cursor:pointer}button:disabled{opacity:.45;cursor:default}input,textarea,select{background:#fff;color:#333;outline:none}input[type=checkbox],input[type=radio]{accent-color:#16803c}input[type=checkbox]{width:18px;height:18px;flex-shrink:0}input[type=radio]{width:16px;height:16px;margin:0 4px 0 0}a{color:#007bff;cursor:pointer}#nav{height:48px;background:#fff;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between;padding:0 8px;position:sticky;top:0;z-index:5;font-size:17px}#nav button{font-size:14px;background:transparent;color:#1677c8;line-height:40px;margin:0;min-width:48px}#nav #back{font-size:30px}#navTitle{font-weight:500}#toast{position:fixed;bottom:70px;left:10%;right:10%;background:#222e;color:#fff;border-radius:7px;padding:12px;display:none;z-index:30;font-size:14px;text-align:center}#loading{position:fixed;inset:48px 0 0;background:#ffffffb8;z-index:20;align-items:center;justify-content:center;color:#16803c}#loading:not([hidden]){display:flex}body[data-page=login] .container{min-height:calc(100vh - 48px);padding:20px 0}body[data-page=login] .login-card{box-sizing:content-box}body[data-page=login] .title{margin-bottom:calc(20 * var(--rpx))}body[data-page=login] .form-item{margin-bottom:calc(28 * var(--rpx))}body[data-page=login] .password-wrapper{display:flex;align-items:center}body[data-page=login] .toggle-password{background:transparent;line-height:1.4;padding:4px 8px;position:absolute}body[data-page=home] .header{margin-bottom:calc(20 * var(--rpx))}body[data-page=home] .user-info{display:block}body[data-page=home] .page-header{display:flex}body[data-page=home] .activity-item{cursor:pointer}.link-text{background:transparent;line-height:1.6;text-align:center}.agreement-text{display:block}.agreement-row{display:flex;gap:4px;align-items:flex-start}.agreement-row a{font-size:inherit}.password-wrapper .input{padding-right:60px}.type-tags,.member-tags,.keeper-tags{display:flex;flex-wrap:wrap;gap:8px}.member-tag{cursor:pointer}select.input{width:100%}.switch-item input{width:36px;height:22px}.form input[type=date],.form input[type=time]{width:100%;border:1px solid #ddd;border-radius:4px;padding:8px}.datetime-row{display:flex;gap:12px}.datetime-row input{min-width:0;flex:1}.weight-option{display:inline-flex;align-items:center}.weight-options{display:flex;gap:12px}.participant-item{display:flex;align-items:center;justify-content:space-between}.participant-name{flex:1}.bill-item,.child-activity-item{cursor:pointer}.bill-info{min-width:0}.circle{display:inline-flex;align-items:center;justify-content:center}.bill-right{margin-left:auto}.record-table{width:100%;border-collapse:collapse;background:#fff;font-size:13px}.record-table td,.record-table th{padding:10px 4px;border-bottom:1px solid #eee;text-align:center}.record-table button{font-size:12px;line-height:26px}.modal-mask{position:fixed;inset:0;background:#0006;z-index:25;display:flex;align-items:center;justify-content:center}.modal{background:#fff;border-radius:12px;width:92%;max-height:86vh;overflow:auto;padding:20px}.modal h3{margin:0 0 14px}.modal-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eee}.modal .btn{margin-top:20px;width:100%}.error-message{color:#dc3545;text-align:center;margin:10px 0}.readonly-field{padding:10px;background:#f8f8f8;border-radius:4px}.title-input-row{display:flex}.input-title{width:100%}.summary-info-left{flex-wrap:wrap}.summary-actions button{white-space:nowrap}.tab{cursor:pointer}.member-balance{cursor:pointer}.members-list{display:flex;flex-wrap:wrap}.member-item{cursor:pointer}.btn-save{white-space:nowrap}.btn-add-inline{white-space:nowrap}.legal-section{display:block;margin-bottom:20px;line-height:1.7}.legal-section strong{display:block}.hint{line-height:1.5}.child-activity-date{white-space:normal}

.container{min-height:calc(100vh - 48px)}

.modal.member-detail-modal{width:90%;max-height:calc(100vh - 48px);border-radius:calc(16 * var(--rpx));padding:0;overflow:hidden;display:flex;flex-direction:column}.member-detail-modal .modal-body{overflow-y:auto;min-height:0}

.nav-actions{display:flex;align-items:center}.export-progress-mask{position:fixed;inset:48px 0 0;z-index:40;background:#ffffffeb;display:flex;align-items:center;justify-content:center;padding:20px;color:#16803c;text-align:center}

#loading.reading{inset:48px 0 auto;height:3px;background:#e6f3e9;color:transparent;pointer-events:none;overflow:hidden}
#loading.reading::after{content:"";position:absolute;inset:0;background:#16803c;animation:read-progress 1.1s ease-in-out infinite;transform-origin:left}
.read-placeholders{padding-top:16px}
.read-placeholders>div{height:76px;margin-bottom:12px;border-radius:6px;background:linear-gradient(90deg,#eee 20%,#f8f8f8 45%,#eee 70%);background-size:240% 100%;animation:read-placeholder 1.4s linear infinite}
@keyframes read-progress{0%{transform:translateX(-100%) scaleX(.3)}100%{transform:translateX(100%) scaleX(.7)}}
@keyframes read-placeholder{to{background-position:-180% 0}}
@media(prefers-reduced-motion:reduce){#loading.reading::after,.read-placeholders>div{animation:none}}

#navTitle{position:absolute;left:50%;transform:translateX(-50%);max-width:calc(100% - 200px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#share[hidden]{display:none}
