﻿/* ==========================================================
   三只喵转运吧 - 样式
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #FDF8F3;
    color: #3D3328;
    padding-top: 50px;
    padding-bottom: 60px;
    font-size: 14px;
    line-height: 1.5;
}
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #F5EDE4;
}
::-webkit-scrollbar-thumb {
    background: #E8834A;
    border-radius: 4px;
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #E8834A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 100;
    /* 新增：防止换行 */
    white-space: nowrap;
    overflow: hidden;
}
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    /* 新增：允许收缩 */
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.brand-logo {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: #3D3328;
    /* 新增：文字溢出显示省略号 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}
.brand-name .hl {
    color: #E8834A;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.login-btn {
    font-size: 12px;
    color: #3D3328;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 12px;
    border: 2px solid #E8834A;
    border-radius: 24px;
    background: transparent;
    transition: all 0.3s;
    /* 新增：限制最大宽度，超出显示省略号 */
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.login-btn:hover {
    background: #E8834A;
    color: #fff;
}
.login-btn.logged-in {
    border-color: #E8834A;
    background: rgba(232, 131, 74, 0.10);
    color: #E8834A;
}
.logout-btn {
    font-size: 11px;
    color: #B09888;
    cursor: pointer;
    padding: 3px 10px;
    border: 1px solid #D5C8BC;
    border-radius: 16px;
    background: transparent;
    transition: all 0.3s;
    flex-shrink: 0;
}
.logout-btn:hover {
    border-color: #E8834A;
    color: #E8834A;
}

.main-content {
    padding: 12px 16px;
    max-width: 480px;
    margin: 0 auto;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #EDE0D4;
    box-shadow: 0 2px 8px rgba(232, 131, 74, 0.06);
}

.lucky-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lucky-label {
    font-size: 13px;
    color: #B09888;
}
.lucky-number {
    font-size: 20px;
    font-weight: 800;
    color: #D4A84C;
}
.btn-lucky {
    background: linear-gradient(135deg, #F5A88A, #E8834A);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.25s;
    box-shadow: 0 2px 10px rgba(232, 131, 74, 0.30);
}
.btn-lucky:active,
.btn-lucky.disabled {
    transform: scale(0.94);
}
.btn-lucky.disabled {
    background: #D5C8BC;
    box-shadow: none;
    cursor: not-allowed;
}
.lucky-hint {
    font-size: 11px;
    color: #B09888;
    margin-top: 4px;
    padding-left: 4px;
}

.donate-section {
    margin: 12px 0;
}
.donate-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    overflow: hidden;
}
.donate-title {
    font-size: 13px;
    font-weight: 600;
    color: #E8834A;
    flex-shrink: 0;
    margin-right: 10px;
}
.donate-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    height: 26px;
    position: relative;
}
.donate-scroll {
    display: flex;
    white-space: nowrap;
    animation: scrollRightToLeft 38s linear infinite;
    position: absolute;
    left: 0;
    top: 0;
}
.donate-scroll .item {
    font-size: 13px;
    color: #3D3328;
    padding-right: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.donate-scroll .item .amount {
    color: #E8834A;
    font-weight: 700;
}
.donate-scroll-wrapper:hover .donate-scroll {
    animation-play-state: paused;
}
@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.btn-donate {
    width: 100%;
    background: linear-gradient(135deg, #facd03, #E8834A);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 131, 74, 0.35);
    transition: all 0.25s;
    letter-spacing: 1px;
}
.btn-donate:active {
    transform: scale(0.97);
}

.publish-section {
    margin-bottom: 12px;
}
.publish-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.publish-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: #F5EDE4;
    border-radius: 10px;
    padding: 8px 14px;
    font-family: inherit;
    min-height: 38px;
    height: 38px;
    transition: all 0.3s;
    color: #3D3328;
    resize: none;
    line-height: 1.4;
}
.publish-input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(232, 131, 74, 0.15);
    height: 80px;
}
.publish-input::placeholder {
    color: #B09888;
}
.publish-input.expanded {
    height: 80px;
}
.btn-publish {
    background: #F5A88A;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    height: 38px;
    align-self: stretch;
}
.btn-publish:hover {
    background: #E8834A;
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(232, 131, 74, 0.25);
}
.btn-publish:active {
    transform: scale(0.95);
}

.publish-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #F0E8E0;
}
.publish-extra .label {
    font-size: 12px;
    color: #B09888;
}
.publish-extra .type-group {
    display: flex;
    gap: 6px;
}
.publish-extra .type-group label {
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #3D3328;
    padding: 2px 8px;
    border-radius: 12px;
    background: #F5EDE4;
    transition: all 0.2s;
}
.publish-extra .type-group label.active-type {
    background: rgba(232, 131, 74, 0.12);
    color: #E8834A;
    font-weight: 600;
}
.publish-extra .type-group label input {
    display: none;
}

.cat-group {
    display: flex;
    gap: 4px;
    align-items: center;
}
.cat-group .cat-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    border: 2.5px solid transparent;
    transition: all 0.3s;
    object-fit: cover;
    padding: 2px;
    background: #F5EDE4;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cat-group .cat-btn.active-cat {
    border-color: #E8834A;
    background: #FDF8F3;
    transform: scale(1.10);
}
.cat-group .cat-btn:hover {
    transform: scale(1.05);
}
.cat-group .cat-name {
    font-size: 11px;
    color: #B09888;
    margin-left: 2px;
}

.tab-bar {
    display: flex;
    gap: 4px;
    background: #F0E8E0;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 12px;
}
.tab-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #B09888;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-item:active {
    transform: scale(0.96);
}
.tab-item.active {
    background: #fff;
    color: #E8834A;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(232, 131, 74, 0.08);
    border-bottom: 3px solid #E8834A;
}

.wish-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wish-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #EDE0D4;
    transition: all 0.2s;
}
.wish-item.thanks {
    border-color: #D4A84C;
    background: #FDFAF5;
}
.wish-item .wish-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.wish-item .wish-cat-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5EDE4;
}
.wish-item .wish-user {
    font-size: 13px;
    font-weight: 600;
    color: #3D3328;
}
.wish-item .wish-time {
    font-size: 11px;
    color: #B09888;
    margin-left: auto;
}
.wish-item .wish-type-badge {
    display: inline-block;
    font-size: 11px;
    padding: 0 10px;
    border-radius: 12px;
    font-weight: 600;
    margin-right: 6px;
}
.wish-item .wish-type-badge.wish {
    background: #E8F0FE;
    color: #4A7FC1;
}
.wish-item .wish-type-badge.thanks {
    background: #FDF0E0;
    color: #D4A84C;
}
.wish-item .wish-content {
    font-size: 15px;
    margin-bottom: 8px;
    color: #3D3328;
    word-break: break-word;
}
.wish-item .wish-actions {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #B09888;
}
.wish-item .wish-actions span {
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}
.wish-item .wish-actions span:active {
    transform: scale(0.92);
}
.wish-item .wish-actions .liked {
    color: #E8834A;
}
.wish-item .wish-actions .helped {
    color: #D4A84C;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 0 4px 0;
}
.page-btn {
    background: #fff;
    border: 1px solid #EDE0D4;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 13px;
    color: #3D3328;
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:active {
    transform: scale(0.95);
}
.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.page-info {
    font-size: 13px;
    color: #B09888;
}

.footer-stats {
    text-align: center;
    font-size: 11px;
    color: #C8B8A8;
    padding: 8px 0 4px 0;
    border-top: 1px solid #F0E8E0;
    margin-top: 4px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid #E8834A;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    color: #B09888;
    cursor: pointer;
    transition: all 0.3s;
    padding: 4px 16px;
    user-select: none;
}
.nav-item i {
    font-size: 20px;
    transition: all 0.3s;
}
.nav-item.active {
    color: #E8834A;
}
.nav-item.active i {
    transform: scale(1.05);
}
.nav-item:active {
    transform: scale(0.92);
}

.toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #3D3328;
    color: #FDF8F3;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 999;
    animation: toastIn 0.4s ease;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(61, 51, 40, 0.20);
}
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 51, 40, 0.35);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.auth-overlay.open {
    display: flex;
}
.auth-box {
    background: #FDF8F3;
    border-radius: 24px;
    padding: 28px 24px 20px;
    max-width: 380px;
    width: 92%;
    border-top: 4px solid #E8834A;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}
.auth-box .auth-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #3D3328;
}
.auth-box .auth-sub {
    text-align: center;
    color: #B09888;
    font-size: 13px;
    margin-bottom: 12px;
}
.auth-box .auth-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #EDE0D4;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
    color: #3D3328;
    transition: border 0.3s;
    margin-bottom: 10px;
}
.auth-box .auth-input:focus {
    border-color: #E8834A;
}
.auth-box .auth-btn {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(135deg, #E8834A, #D4723A);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 12px rgba(232, 131, 74, 0.25);
}
.auth-box .auth-btn:active {
    transform: scale(0.97);
}
.auth-box .auth-switch {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #B09888;
}
.auth-box .auth-switch span {
    color: #E8834A;
    cursor: pointer;
    font-weight: 600;
}
.auth-box .auth-close {
    text-align: center;
    margin-top: 12px;
    color: #B09888;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 0;
}

.avatar-select {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}
.avatar-select .av-option {
    cursor: pointer;
    text-align: center;
    padding: 8px 12px;
    border: 3px solid #EDE0D4;
    border-radius: 16px;
    transition: all 0.25s;
    background: #fff;
    min-width: 64px;
}
.avatar-select .av-option:hover {
    border-color: #D4A84C;
}
.avatar-select .av-option.active {
    border-color: #E8834A;
    background: rgba(232, 131, 74, 0.08);
    box-shadow: 0 0 0 3px rgba(232, 131, 74, 0.15);
}
.avatar-select .av-option .av-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 4px;
    border: 2px solid transparent;
    transition: all 0.3s;
}
.avatar-select .av-option.active .av-img {
    border-color: #E8834A;
    box-shadow: 0 0 0 3px rgba(232, 131, 74, 0.2);
}
.avatar-select .av-option .av-emoji {
    font-size: 32px;
    display: block;
    line-height: 48px;
    text-align: center;
}
.avatar-select .av-option .av-name {
    font-size: 10px;
    color: #3D3328;
    margin-top: 2px;
}
.avatar-select .av-option input {
    display: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 51, 40, 0.35);
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.open {
    display: flex;
}
.modal-sheet {
    background: #FDF8F3;
    border-radius: 24px 24px 0 0;
    padding: 16px 20px 20px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-top: 4px solid #E8834A;
}
.modal-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #3D3328;
}
.modal-sub {
    text-align: center;
    color: #B09888;
    margin: 4px 0 12px;
    font-size: 13px;
}

.modal-donate-wrapper {
    height: 76px;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #EDE0D4;
}
.modal-donate-list {
    display: flex;
    flex-direction: column;
    animation: scrollUp 14s linear infinite;
}
.modal-donate-list:hover {
    animation-play-state: paused;
}
.modal-donate-list .row {
    height: 25px;
    line-height: 25px;
    padding: 0 12px;
    font-size: 12px;
    color: #3D3328;
    border-bottom: 1px solid #F5EDE4;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.modal-donate-list .row:last-child {
    border-bottom: none;
}
.modal-donate-list .row .amount {
    color: #E8834A;
    font-weight: 700;
    margin-left: auto;
}
.modal-donate-list.paused {
    animation: none !important;
}
@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}
.amount-item {
    background: #fff;
    border: 2px solid #EDE0D4;
    border-radius: 10px;
    text-align: center;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #3D3328;
    cursor: pointer;
    transition: all 0.2s;
}
.amount-item:active {
    transform: scale(0.94);
}
.amount-item.active {
    border-color: #E8834A;
    background: #FDF0E8;
    color: #E8834A;
}
.amount-item.custom {
    color: #B09888;
    font-weight: 400;
}

.qr-area {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1.5px dashed #EDE0D4;
    margin-bottom: 6px;
}
.qr-area img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.qr-area .qr-label {
    font-size: 12px;
    color: #B09888;
    margin-top: 4px;
}
.qr-area .qr-hint {
    font-size: 11px;
    color: #C8B8A8;
    margin-top: 2px;
}

.modal-close {
    text-align: center;
    padding: 8px 0;
    cursor: pointer;
    border-top: 1px solid #EDE0D4;
    margin-top: 8px;
    color: #B09888;
    transition: all 0.3s;
    font-weight: 500;
}
.modal-close:active {
    background: #F5EDE4;
    border-radius: 0 0 24px 24px;
}

.modal-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 51, 40, 0.4);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-box.open {
    display: flex;
}
.modal-box .modal-card {
    background: #FDF8F3;
    border-radius: 20px;
    padding: 20px 24px;
    max-width: 400px;
    width: 92%;
    max-height: 70vh;
    overflow-y: auto;
    border-top: 4px solid #E8834A;
}
.modal-box .modal-card .modal-card-title {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #3D3328;
    margin-bottom: 4px;
}
.modal-box .modal-card .modal-card-sub {
    text-align: center;
    font-size: 12px;
    color: #B09888;
    margin-bottom: 12px;
}
.modal-box .modal-card .modal-card-close {
    text-align: center;
    padding: 10px 0 4px;
    color: #B09888;
    cursor: pointer;
    font-size: 13px;
    border-top: 1px solid #F0E8E0;
    margin-top: 8px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-top: 8px;
}
.calendar-grid .cal-cell {
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    border-radius: 8px;
    background: #F5EDE4;
    color: #B09888;
}
.calendar-grid .cal-cell.weekday {
    background: transparent;
    color: #B09888;
    font-weight: 600;
    font-size: 11px;
}
.calendar-grid .cal-cell.today {
    background: #E8834A;
    color: #fff;
    font-weight: 700;
}
.calendar-grid .cal-cell.checked {
    background: rgba(212, 168, 76, 0.25);
    color: #D4A84C;
    font-weight: 600;
}
.calendar-grid .cal-cell.empty {
    background: transparent;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #B09888;
}
.empty-state i {
    font-size: 40px;
    color: #E0D5C8;
    display: block;
    margin-bottom: 8px;
}

.share-section {
    background: #fff;
    border-radius: 12px;
    padding: 8px 14px 10px;
    margin: 8px 0;
    border: 1px solid #EDE0D4;
    box-shadow: 0 1px 6px rgba(232, 131, 74, 0.05);
}
.share-section .share-title {
    font-size: 16px;
    font-weight: 700;
    color: #E8834A;
    margin-bottom: 2px;
    text-align: center;
}
.share-section .share-title::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #E8834A, #D4A84C);
    margin: 1px auto 0;
    border-radius: 4px;
}
.share-desc {
    text-align: center;
    font-size: 12px;
    color: #B09888;
    margin-bottom: 4px;
}
.share-tip {
    background: #FDF0E8;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 11px;
    color: #E8834A;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.share-tab-switch-wrap {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.share-tab-switch {
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #B09888;
    border-radius: 14px;
    cursor: pointer;
    background: #F5EDE4;
    transition: all 0.3s;
    border: none;
}
.share-tab-switch.active {
    background: #E8834A;
    color: #fff;
}

.share-wish-select {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
    max-height: 100px;
    overflow-y: auto;
}
.share-wish-select .sw-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #F5EDE4;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    border: 2px solid transparent;
}
.share-wish-select .sw-item:hover {
    background: #EDE6DE;
}
.share-wish-select .sw-item.selected {
    border-color: #E8834A;
    background: #FDF0E8;
}
.share-wish-select .sw-item .sw-cat {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.share-wish-select .sw-item .sw-text {
    flex: 1;
    color: #3D3328;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
}
.share-wish-select .sw-item .sw-type {
    font-size: 10px;
    color: #B09888;
}
.share-empty-tip {
    color: #B09888;
    font-size: 12px;
    padding: 4px 0;
    text-align: center;
}

.share-custom-input {
    width: 100%;
    border: 2px solid #EDE0D4;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    outline: none;
    background: #fff;
    color: #3D3328;
    transition: border 0.3s;
    margin-bottom: 6px;
    resize: vertical;
    min-height: 32px;
    font-family: inherit;
}
.share-custom-input:focus {
    border-color: #E8834A;
}

.share-card-preview {
    background: linear-gradient(145deg, #FDF8F3, #F5EDE4);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
    border: 2px solid rgba(232, 131, 74, 0.18);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}
.share-card-preview::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, #E8834A, #D4A84C, #E8834A, transparent);
    border-radius: 0 0 50% 50%;
}
.share-card-preview .card-cats {
    font-size: 20px;
    margin-bottom: 2px;
}
.share-card-preview .card-cats img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 2px;
    object-fit: cover;
    vertical-align: middle;
}
.share-card-preview .card-content {
    font-size: 16px;
    font-weight: 600;
    color: #3D3328;
    padding: 4px 0 2px;
    line-height: 1.5;
}
.share-card-preview .card-user {
    font-size: 11px;
    color: #B09888;
    margin-bottom: 8px;
}
.share-card-preview .card-divider {
    width: 40px;
    height: 1.5px;
    background: linear-gradient(90deg, #E8834A, #D4A84C);
    margin: 0 auto 8px;
    border-radius: 4px;
}
.share-card-preview .card-qr-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.share-card-preview .card-qr-row img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px solid rgba(232, 131, 74, 0.18);
    background: #fff;
    padding: 4px;
    display: block;
    object-fit: contain;
}
.share-card-preview .card-qr-info {
    text-align: left;
    font-size: 12px;
    color: #B09888;
    line-height: 1.6;
}
.share-card-preview .card-qr-info .brand {
    font-weight: 700;
    color: #E8834A;
    font-size: 14px;
}
.share-card-preview .card-qr-info .url {
    font-size: 13px;
    font-weight: 600;
    color: #E8834A;
}
.share-card-preview .card-footer {
    font-size: 9px;
    color: #C8B8A8;
    margin-top: 8px;
    border-top: 1px solid #F0E8E0;
    padding-top: 6px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.share-buttons .share-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 30px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    color: #fff;
}
.share-buttons .share-btn:active {
    transform: scale(0.94);
}
.share-buttons .share-btn i {
    font-size: 14px;
}
.share-buttons .share-btn.primary {
    background: linear-gradient(135deg, #E8834A, #D4723A);
    box-shadow: 0 2px 12px rgba(232, 131, 74, 0.25);
}
.share-buttons .share-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(232, 131, 74, 0.35);
}
.share-buttons .share-btn.secondary {
    background: #8B7A6A;
}
.share-buttons .share-btn.secondary:hover {
    background: #7A6A5A;
    transform: translateY(-1px);
}
.share-buttons .share-btn.save {
    background: #E8834A;
    box-shadow: 0 2px 12px rgba(232, 131, 74, 0.15);
}
.share-buttons .share-btn.save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 131, 74, 0.25);
}

.share-history {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #F0E8E0;
}
.share-history .sh-title {
    font-size: 10px;
    font-weight: 600;
    color: #B09888;
    margin-bottom: 2px;
}
.share-history .sh-item {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #B09888;
    padding: 1px 0;
    border-bottom: 1px solid #F5EDE4;
}
.share-history .sh-item:last-child {
    border-bottom: none;
}
.share-history .sh-item .sh-platform {
    color: #3D3328;
}

.share-tab-content {
    display: none;
}
.share-tab-content.active {
    display: block;
}

.profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px 18px;
    margin: 10px 0;
    border: 1px solid #EDE0D4;
    box-shadow: 0 2px 8px rgba(232, 131, 74, 0.05);
}
.profile-section .profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.profile-section .profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #E8834A, #D4A84C);
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(232, 131, 74, 0.25);
}
.profile-section .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-section .profile-info {
    flex: 1;
    min-width: 0;
}
.profile-section .profile-name {
    font-size: 17px;
    font-weight: 700;
    color: #3D3328;
}
.profile-section .profile-sig {
    font-size: 12px;
    color: #B09888;
    margin-top: 1px;
    overflow: hidden;
    white-space: nowrap;
}
.profile-section .profile-days {
    font-size: 11px;
    color: #C8B8A8;
    margin-top: 1px;
}
.profile-section .profile-days strong {
    color: #E8834A;
}
.profile-section .profile-edit {
    font-size: 12px;
    color: #E8834A;
    cursor: pointer;
    padding: 4px 12px;
    border: 1.5px solid #E8834A;
    border-radius: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.profile-section .profile-edit:hover {
    background: #E8834A;
    color: #fff;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.profile-stats .stat-item {
    background: #FDF8F3;
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
    border: 1px solid #EDE0D4;
}
.profile-stats .stat-item .stat-num {
    font-size: 20px;
    font-weight: 800;
    color: #E8834A;
}
.profile-stats .stat-item .stat-label {
    font-size: 10px;
    color: #B09888;
    margin-top: 2px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}
.profile-grid .grid-item {
    background: #FDF8F3;
    border-radius: 12px;
    padding: 12px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #EDE0D4;
}
.profile-grid .grid-item:active {
    transform: scale(0.94);
}
.profile-grid .grid-item .grid-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}
.profile-grid .grid-item .grid-label {
    font-size: 10px;
    color: #3D3328;
}

.profile-logout {
    width: 100%;
    padding: 12px 0;
    background: #fff;
    color: #E8834A;
    border: 2px solid #E8834A;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 4px;
}
.profile-logout:hover {
    background: #E8834A;
    color: #fff;
}
.profile-logout:active {
    transform: scale(0.97);
}

.profile-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #B09888;
}
.profile-placeholder i {
    font-size: 48px;
    color: #E0D5C8;
    display: block;
    margin-bottom: 12px;
}
.profile-placeholder .placeholder-title {
    font-size: 17px;
    color: #3D3328;
    font-weight: 600;
}
.profile-placeholder .placeholder-desc {
    font-size: 13px;
    margin-top: 4px;
}
.profile-placeholder .placeholder-btn {
    margin-top: 14px;
    padding: 10px 32px;
    background: linear-gradient(135deg, #E8834A, #D4723A);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(232, 131, 74, 0.25);
    transition: all 0.25s;
}
.profile-placeholder .placeholder-btn:active {
    transform: scale(0.95);
}

/* 猫咪选择器样式 */
.cat-select-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.settings-btn:hover {
    background: #F5EDE4 !important;
}

@media (max-width: 380px) {
    .brand-name {
        font-size: 14px;
    }
    .btn-donate {
        font-size: 16px;
        padding: 13px 0;
    }
    .lucky-number {
        font-size: 17px;
    }
    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .share-buttons .share-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
    .share-buttons .share-btn i {
        font-size: 12px;
    }
    .share-section .share-title {
        font-size: 15px;
    }
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .profile-section .profile-avatar {
        width: 46px;
        height: 46px;
    }
    .calendar-grid .cal-cell {
        font-size: 11px;
        padding: 4px 0;
    }
    .avatar-select .av-option {
        min-width: 50px;
        padding: 4px 8px;
    }
    .avatar-select .av-option .av-img {
        width: 40px;
        height: 40px;
    }
    .share-card-preview .card-qr-row img {
        width: 56px;
        height: 56px;
    }
    .share-card-preview .card-qr-info {
        font-size: 11px;
    }
    .share-card-preview .card-qr-info .brand {
        font-size: 12px;
    }
    .share-card-preview .card-qr-info .url {
        font-size: 11px;
    }
}

@media (min-width: 600px) {
    .main-content {
        max-width: 480px;
        margin: 0 auto;
    }
    .modal-sheet {
        max-width: 480px;
    }
}