/* 个人中心 - 小程序风格 */
.my-page-v2 {
    padding-bottom: 0;
    background: #f5f5f5;
}

.my-page-v2 .my-body {
    padding-bottom: 4px;
}

.my-page-v2 .my-hero {
    background: linear-gradient(160deg, #fce8dc 0%, #e8f5e9 45%, #e3f2fd 100%);
    padding: 8px 0 0;
}

@media (min-width: 768px) {
    .my-page-v2 .my-hero {
        padding-top: 16px;
    }
}

.my-page-v2 .my-hero-inner {
    padding-bottom: 0;
}

.my-page-v2 .my-top-bar {
    padding-left: 4px;
    padding-right: 4px;
}

.my-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.my-top-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.my-top-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

/* 用户信息区：避免 a 标签嵌套导致布局错乱 */
.my-page-v2 .my-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px 16px;
    box-sizing: border-box;
}

.my-page-v2 .my-user-avatar-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
    text-decoration: none;
}

.my-page-v2 .my-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    display: block;
}

.my-page-v2 .my-user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.my-page-v2 .my-user-name-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.my-page-v2 .my-nickname-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.my-page-v2 .my-nickname {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-page-v2 .my-v-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f5a623;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.my-page-v2 .my-stats {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 8px;
}

.my-page-v2 .my-stats .my-stat-link {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin: 0;
    padding: 0;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.2;
}

.my-page-v2 .my-stats .my-stat-link strong {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.my-page-v2 .my-stat-label {
    color: #666;
    font-size: 13px;
}

.my-page-v2 .my-user-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    color: #bbb;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.my-page-v2 .my-user-arrow .fa {
    line-height: 1;
}

.my-page-v2 .my-vip-card {
    position: relative;
    background: #2c3e50;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    margin-top: 4px;
    box-shadow: none;
}

.my-vip-card-link {
    display: block;
    color: #fff;
    text-decoration: none;
}

.my-vip-recharge-hit {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 33.33%;
    height: 56px;
    z-index: 2;
}

.my-page-v2 .my-vip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #3d5166 0%, #2c3e50 100%);
    margin-bottom: 0;
}

.my-vip-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-page-v2 .my-vip-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.my-vip-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.25);
    color: #f5c842;
}

.my-page-v2 .my-vip-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

.my-vip-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5c842, #f5a623);
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
}

.my-page-v2 .my-vip-stats {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
}

.my-page-v2 .my-vip-stat {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.my-other-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding-bottom: 8px;
}

@media (max-width: 360px) {
    .my-other-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.my-relation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #333;
}

.my-relation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.my-relation-name {
    flex: 1;
    font-size: 15px;
}

.my-relation-item .fa-angle-right {
    color: #ccc;
}

.other-page {
    padding: 12px 0 24px;
}

.other-page-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.other-back {
    font-size: 24px;
    color: #333;
    text-decoration: none;
    line-height: 1;
}

.other-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.other-content {
    background: #fff;
    border-radius: var(--cm-radius, 8px);
    padding: 16px;
    line-height: 1.7;
}

.feedback-card {
    background: #fff;
    border-radius: var(--cm-radius, 8px);
    padding: 16px;
}

.feedback-tip {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feedback-textarea {
    min-height: 140px;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin: 6px 0 14px;
}

.my-page-v2 .my-vip-stat .label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.my-page-v2 .my-vip-stat .num {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #f5c842;
    margin-top: 4px;
}

.my-vip-link {
    font-size: 14px !important;
}

.my-body {
    padding-top: 12px;
}

.my-card {
    background: #fff;
    border-radius: var(--cm-radius, 8px);
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.my-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

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

.my-city-action {
    border: none;
    background: none;
    color: var(--cm-primary, #00c3ce);
    font-size: 13px;
    padding: 0;
}

.my-city-tip {
    font-size: 12px;
    color: #999;
}

.my-city-inline {
    display: flex;
    align-items: stretch;
    padding: 14px 8px 16px;
}

.my-city-chip {
    flex: 1;
    text-align: center;
    padding: 4px 6px;
}

.my-city-chip.clickable {
    cursor: pointer;
}

.my-city-sep {
    width: 1px;
    background: #eee;
    margin: 4px 0;
}

.chip-label {
    display: block;
    font-size: 12px;
    color: #999;
}

.chip-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 6px;
}

.my-page-v2 .my-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 0;
}

.my-page-v2 .my-quick-item {
    box-shadow: none;
    border-radius: 0;
    padding: 16px 8px;
}

.my-common-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding-bottom: 8px;
}

.my-common-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
}

.my-common-item i {
    font-size: 22px;
    color: #333;
}

.city-picker-tip {
    padding: 10px 12px;
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}

.my-header-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    text-decoration: none;
    width: 100%;
}

.my-interact-page {
    padding-bottom: 24px;
}

.my-interact-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.my-back-link {
    font-size: 24px;
    color: var(--cm-text, #333);
    text-decoration: none;
    line-height: 1;
}

.my-interact-header .page-title {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.my-search-bar {
    margin-bottom: 10px;
}

.my-type-tabs-wrap,
.my-status-tabs-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
}

.my-type-tabs,
.my-status-tabs {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    padding: 4px 0;
}

.my-type-tab,
.my-status-tab {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--cm-text-secondary, #666);
    background: var(--cm-bg, #f5f5f5);
    text-decoration: none;
}

.my-type-tab.active,
.my-status-tab.active {
    background: var(--cm-primary-light, rgba(0, 195, 206, 0.12));
    color: var(--cm-primary, #00c3ce);
    font-weight: 500;
}

.my-post-item {
    background: #fff;
    border-radius: var(--cm-radius, 8px);
    margin-bottom: 10px;
    box-shadow: var(--cm-shadow, 0 1px 4px rgba(0, 0, 0, 0.04));
    overflow: hidden;
}

.my-post-link {
    display: block;
    padding: 14px;
    text-decoration: none;
    color: inherit;
}

.my-post-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.my-post-tags {
    display: flex;
    gap: 6px;
}

.my-type-tag {
    font-size: 11px;
    color: var(--cm-primary, #00c3ce);
    background: var(--cm-primary-light, rgba(0, 195, 206, 0.1));
    padding: 2px 8px;
    border-radius: 4px;
}

.my-cat-tag {
    font-size: 11px;
    color: var(--cm-text-muted, #999);
    background: var(--cm-bg, #f5f5f5);
    padding: 2px 8px;
    border-radius: 4px;
}

.my-status-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.my-status-tag.status-normal,
.my-status-tag.status-1,
.my-status-tag.status-published {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.my-status-tag.status-pending {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.my-status-tag.status-hidden,
.my-status-tag.status-0,
.my-status-tag.status-offline {
    color: #999;
    background: #f5f5f5;
}

.my-status-tag.status-expired {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.my-post-body {
    display: flex;
    gap: 12px;
}

.my-post-cover {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.my-post-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-post-summary,
.my-post-comment {
    font-size: 13px;
    color: var(--cm-text-secondary, #666);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-post-comment {
    color: var(--cm-primary, #00c3ce);
}

.my-post-time {
    font-size: 12px;
    color: var(--cm-text-muted, #999);
    margin-top: 6px;
}

.my-post-actions {
    border-top: 1px solid var(--cm-border, #eee);
    padding: 8px 14px;
    text-align: right;
}

.my-post-actions .btn-link {
    color: #e74c3c;
    padding: 0;
    font-size: 13px;
}
