/* === Simple Center Page Styles === */

/* 全局重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
}

#app {
    min-height: 100vh;
}

.page-container {
    min-height: 100vh;
    padding-bottom: 60px;
    background: linear-gradient(180deg, #6a5acd 0%, #483d8b 30%, #f5f5f5 30%);
}

/* === 头部 Hero === */
.hero-section {
    padding: 20px 16px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.avatar.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: rgba(255,255,255,0.2);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-info {
    flex: 1;
}

.nickname {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.subname {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* === 会员信息卡片 === */
.card {
    margin: 0 12px 12px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.summary-card {
    margin-top: -8px;
}

.summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.summary-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.summary-edit {
    font-size: 12px;
    color: #6a5acd;
    cursor: pointer;
}

.summary-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.summary-item {
    flex: 1;
    text-align: center;
}

.summary-item-right {
    border-left: 1px solid #eee;
}

.summary-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.summary-value.highlight {
    color: #6a5acd;
}

.summary-time {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}

.summary-tip {
    font-size: 11px;
    color: #bbb;
    text-align: center;
    margin-top: 6px;
    line-height: 1.5;
}

.summary-action {
    text-align: center;
    margin-top: 12px;
}

.sign-btn {
    display: inline-block;
    padding: 8px 28px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sign-btn:active {
    opacity: 0.8;
}

/* VIP 权益 */
.vip-benefits {
    margin-top: 14px;
    padding: 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-radius: 8px;
}

.vip-benefits-title {
    font-size: 13px;
    font-weight: 600;
    color: #8b6914;
    margin-bottom: 8px;
    text-align: center;
}

.vip-benefit-item {
    font-size: 12px;
    color: #665100;
    line-height: 1.8;
    text-align: center;
}

/* === 菜单列表 === */
.menu-list {
    margin: 0 12px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f5f5f5;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #f9f9f9;
}

.menu-left {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    flex-shrink: 0;
}

.menu-text {
    flex: 1;
}

.menu-title {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.menu-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.menu-arrow {
    font-size: 18px;
    color: #ccc;
    font-weight: 300;
}

/* === 底部 TabBar === */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    background: #fff;
    box-shadow: 0 -1px 6px rgba(0,0,0,0.08);
    z-index: 100;
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
}

.tabbar-item img {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

.tabbar-item span {
    font-size: 10px;
    color: #999;
}

.tabbar-item.active img {
    opacity: 1;
}

.tabbar-item.active span {
    color: #6a5acd;
    font-weight: 600;
}

/* === 支付弹窗 === */
.pay-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999;
}

.pay-modal-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}

.pay-modal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.pay-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.pay-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.pay-modal-close {
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.pay-modal-body {
    padding: 16px;
}

.pay-amount {
    text-align: center;
    padding: 20px 0;
}

.pay-amount-label {
    font-size: 14px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.pay-amount-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.pay-options {
    margin: 16px 0;
}

.pay-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.pay-option.selected {
    border-color: #6a5acd;
}

.pay-option-icon {
    font-size: 24px;
    margin-right: 12px;
}

.pay-option-info {
    flex: 1;
}

.pay-option-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.pay-option-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.pay-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
}

.pay-option.selected .pay-option-radio {
    border-color: #6a5acd;
    background: #6a5acd;
    color: #fff;
}

.pay-btn {
    margin-top: 16px;
    padding: 14px;
    background: linear-gradient(135deg, #6a5acd, #836fff);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.pay-btn:active {
    opacity: 0.8;
}

.pay-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* === Toast === */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.toast-msg {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 260px;
    text-align: center;
    animation: toastFade 0.3s ease;
}

@keyframes toastFade {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
