/* ============================================
   星光社区 - 移动端样式表
   ============================================ */

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, button { font-family: inherit; font-size: inherit; border: none; outline: none; }
ul, ol { list-style: none; }

/* ===== App Container ===== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f5f5f5;
    position: relative;
    padding-bottom: 0;
}

.app-container.has-tabbar {
    padding-bottom: 60px;
}

/* ===== App Header ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.app-header .header-title {
    font-size: 17px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.app-header .header-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.app-header .header-back svg {
    width: 22px;
    height: 22px;
    fill: #333;
}

.app-header .header-action {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.app-header .header-action svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* ===== App Content ===== */
.app-content {
    padding: 12px;
}

/* ===== Search Bar ===== */
.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 6px 14px;
    gap: 6px;
}

.search-bar svg {
    width: 16px;
    height: 16px;
    fill: #999;
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: transparent;
    font-size: 13px;
    color: #333;
}

.search-bar input::placeholder {
    color: #bbb;
}

/* ===== Header Avatar ===== */
.header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

/* ===== Ad Banner ===== */
.ad-banner {
    margin: 0 12px 12px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ad-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.ad-banner .ad-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.ad-banner .ad-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.ad-banner .ad-dots span.active {
    background: #fff;
}

/* ===== Notice Marquee ===== */
.notice-bar {
    margin: 0 12px 12px;
    background: #0080ff;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.notice-bar .notice-icon {
    width: 16px;
    height: 16px;
    fill: #fff;
    flex-shrink: 0;
}

.notice-bar .notice-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    color: #fff;
    font-size: 13px;
}

.notice-bar .notice-text span {
    display: inline-block;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== Quick Entries ===== */
.quick-entries {
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-radius: 10px;
    margin: 0 12px 12px;
    padding: 14px 8px;
}

.quick-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.quick-entry .entry-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-entry .entry-label {
    font-size: 12px;
    color: #666;
}

/* ===== Sub Tabs ===== */
.sub-tabs {
    display: flex;
    background: #fff;
    border-radius: 10px 10px 0 0;
    margin: 0 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sub-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    position: relative;
}

.sub-tab.active {
    color: #333;
    font-weight: 600;
}

.sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: #00CDB2;
}

/* ===== Card ===== */
.card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

/* ===== App Item ===== */
.app-list {
    margin: 0 12px;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 8px;
}

.app-item .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}

.app-item .app-info {
    flex: 1;
    min-width: 0;
}

.app-item .app-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-item .app-desc {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-item .app-category {
    font-size: 11px;
    color: #2693F3;
    margin-bottom: 2px;
}

.app-item .app-download-btn {
    flex-shrink: 0;
    background: #00CDB2;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

/* ===== Post Item ===== */
.post-list {
    margin: 0 12px;
}

.post-item {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
}

.post-item .post-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.post-item .post-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-item .author-info {
    flex: 1;
    min-width: 0;
}

.post-item .author-name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-item .author-title {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.post-item .post-time {
    font-size: 11px;
    color: #bbb;
    flex-shrink: 0;
}

.post-item .post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.post-item .post-summary {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-item .post-images {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.post-item .post-images img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.post-item .post-stats {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
}

.post-item .post-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
}

.post-item .post-stat svg {
    width: 14px;
    height: 14px;
    fill: #bbb;
}

/* ===== Sort Tabs ===== */
.sort-tabs {
    display: flex;
    background: #fff;
    padding: 0 12px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 52px;
    z-index: 90;
}

.sort-tab {
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.sort-tab.active {
    color: #00CDB2;
    font-weight: 600;
}

.sort-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: #00CDB2;
}

.sort-tab .red-dot {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF4444;
}

/* ===== Tab Bar ===== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
    height: 60px;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    color: #999;
    font-size: 10px;
    gap: 2px;
    height: 60px;
}

.tab-item svg {
    width: 22px;
    height: 22px;
    fill: #ccc;
}

.tab-item.active {
    color: #00CDB2;
}

.tab-item.active svg {
    fill: #00CDB2;
}

.tab-item.tab-center {
    position: relative;
}

.tab-item.tab-center .tab-plus {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #00CDB2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    box-shadow: 0 2px 8px rgba(0,205,178,0.4);
}

.tab-item.tab-center .tab-plus svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ===== Form ===== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    color: #333;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: #00CDB2;
    background: #fff;
}

.form-input::placeholder {
    color: #bbb;
}

textarea.form-input {
    resize: none;
    min-height: 100px;
    line-height: 1.6;
}

.form-input-group {
    display: flex;
    gap: 10px;
}

.form-input-group .form-input {
    flex: 1;
}

/* ===== Buttons ===== */
.btn-primary {
    width: 100%;
    background: #00CDB2;
    color: #fff;
    padding: 14px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: opacity 0.2s;
}

.btn-primary:active {
    opacity: 0.85;
}

.btn-primary:disabled {
    opacity: 0.5;
}

.btn-accent {
    background: #2693F3;
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-accent:active {
    opacity: 0.85;
}

.btn-danger {
    background: #e14096;
    color: #fff;
    padding: 14px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    width: 100%;
}

.btn-danger:active {
    opacity: 0.85;
}

.btn-outline {
    background: transparent;
    color: #00CDB2;
    border: 2px solid #00CDB2;
    padding: 12px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.btn-sm {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
}

.btn-dark {
    background: #464646;
    color: #fff;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* ===== Auth Pages ===== */
.auth-page {
    padding: 20px 24px;
}

.auth-back {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-back svg {
    width: 24px;
    height: 24px;
    fill: #333;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.auth-protocol {
    font-size: 12px;
    color: #999;
    margin: 16px 0;
    line-height: 1.6;
}

.auth-protocol a {
    color: #2693F3;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    font-size: 14px;
}

.auth-footer a {
    color: #2693F3;
}

.auth-footer .center-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.auth-footer .center-link a {
    color: #2693F3;
}

/* ===== Badge ===== */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.badge-admin {
    background: #dfe7f3;
    color: #6091c9;
}

.badge-vip {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #fff;
}

.badge-official {
    background: #00CDB2;
    color: #fff;
}

.badge-plate {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    background: #e8f4fd;
    color: #2693F3;
    margin-right: 6px;
}

/* ===== User Header (Profile) ===== */
.user-header {
    background: #fff;
    padding: 20px 16px;
}

.user-header .user-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    flex-shrink: 0;
}

.user-avatar.sm {
    width: 36px;
    height: 36px;
    border-width: 2px;
}

.user-header .user-name {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.user-header .user-signature {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0 0;
    margin-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.user-stat {
    text-align: center;
}

.user-stat .stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.user-stat .stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ===== Member Center Card ===== */
.member-card {
    background: linear-gradient(135deg, #3F4457, #2a2e3d);
    border-radius: 12px;
    padding: 16px;
    margin: 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.member-card .member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-card .member-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.member-card .member-text {
    color: #fff;
}

.member-card .member-title {
    font-size: 15px;
    font-weight: 600;
}

.member-card .member-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.member-card .member-arrow {
    color: rgba(255,255,255,0.4);
    font-size: 18px;
}

/* ===== Menu List ===== */
.menu-list {
    margin: 0 12px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.menu-item .menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.menu-item .menu-label {
    flex: 1;
    font-size: 15px;
    color: #333;
}

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

/* ===== Plate Grid ===== */
.plate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
}

.plate-item {
    background: #fff;
    border-radius: 12px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.1s;
}

.plate-item:active {
    transform: scale(0.95);
}

.plate-item .plate-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.plate-item .plate-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.plate-item .plate-count {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* ===== Post Detail ===== */
.post-detail {
    background: #fff;
    margin: 0 0 12px;
}

.post-detail .detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.post-detail .detail-author img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.post-detail .detail-author .author-meta {
    flex: 1;
}

.post-detail .detail-author .author-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-detail .detail-author .author-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.post-detail .detail-body {
    padding: 0 16px 16px;
}

.post-detail .detail-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-detail .detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    word-break: break-word;
}

.post-detail .detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.post-detail .detail-images img {
    width: 100%;
    border-radius: 8px;
}

/* ===== Comment Section ===== */
.comment-section {
    background: #fff;
    padding: 16px;
}

.comment-section .comment-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.comment-item .comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-item .comment-body {
    flex: 1;
    min-width: 0;
}

.comment-item .comment-name {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-item .comment-text {
    font-size: 14px;
    color: #333;
    margin: 4px 0;
    line-height: 1.5;
}

.comment-item .comment-time {
    font-size: 11px;
    color: #bbb;
}

/* ===== Bottom Action Bar ===== */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    z-index: 100;
}

.action-bar .comment-input {
    flex: 1;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
}

.action-bar .comment-input::placeholder {
    color: #bbb;
}

.action-bar .action-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

.action-bar .action-stat svg {
    width: 18px;
    height: 18px;
    fill: #999;
}

/* ===== Apps Page (Category Sidebar) ===== */
.apps-layout {
    display: flex;
    height: calc(100vh - 52px - 60px);
}

.apps-sidebar {
    width: 90px;
    background: #f0f0f0;
    flex-shrink: 0;
    overflow-y: auto;
}

.apps-sidebar .category-btn {
    display: block;
    width: 100%;
    padding: 16px 8px;
    text-align: center;
    font-size: 13px;
    color: #666;
    background: transparent;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.apps-sidebar .category-btn.active {
    background: #fff;
    color: #323232;
    font-weight: 600;
    border-left-color: #00CDB2;
}

.apps-main {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.apps-main .app-item {
    margin-bottom: 8px;
    padding: 10px;
}

/* ===== App Detail ===== */
.app-detail-header {
    background: #fff;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-detail-header .app-icon-lg {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-detail-header .app-meta {
    flex: 1;
    min-width: 0;
}

.app-detail-header .app-name-lg {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.app-detail-header .app-publisher {
    font-size: 13px;
    color: #999;
}

.app-detail-header .app-down-count {
    font-size: 12px;
    color: #bbb;
    margin-top: 4px;
}

.app-detail-section {
    background: #fff;
    padding: 16px;
    margin-top: 10px;
}

.app-detail-section .section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-detail-section .app-intro {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

.app-screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.app-screenshots img {
    width: 200px;
    height: 360px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-download-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: #fff;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}

.app-download-bar .btn-danger {
    border-radius: 25px;
}

/* ===== User Page (Other) ===== */
.user-bg {
    height: 250px;
    background: linear-gradient(135deg, #00CDB2, #2693F3);
    position: relative;
}

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

.user-page-card {
    background: #fff;
    border-radius: 12px 12px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    padding: 20px 16px;
}

.user-page-card .user-top {
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.user-page-card .user-avatar {
    border: 4px solid #fff;
    margin-top: -40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-page-card .user-info-main {
    flex: 1;
    padding-bottom: 4px;
}

.user-page-card .user-name {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.user-page-card .user-signature {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.user-page-card .user-stats {
    border-top: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

.user-page-actions {
    display: flex;
    gap: 10px;
    padding: 0 16px 16px;
    background: #fff;
}

/* ===== Edit Profile ===== */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
}

.avatar-upload .avatar-preview {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    cursor: pointer;
}

.avatar-upload .avatar-hint {
    font-size: 13px;
    color: #2693F3;
}

.avatar-upload input[type="file"] {
    display: none;
}

/* ===== Image Upload Area ===== */
.image-upload-area {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.image-upload-area .upload-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.image-upload-area .upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload-area .upload-preview .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

.image-upload-area .upload-trigger {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px dashed #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ccc;
    cursor: pointer;
    gap: 4px;
}

.image-upload-area .upload-trigger svg {
    width: 28px;
    height: 28px;
    fill: #ccc;
}

.image-upload-area .upload-trigger span {
    font-size: 11px;
}

.image-upload-area input[type="file"] {
    display: none;
}

/* ===== Plate Select Button ===== */
.plate-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
}

.plate-select .plate-select-label {
    font-size: 15px;
    color: #333;
}

.plate-select .plate-select-value {
    font-size: 14px;
    color: #999;
}

.plate-select svg {
    width: 16px;
    height: 16px;
    fill: #ccc;
}

/* ===== Plate Select Modal ===== */
.plate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    align-items: flex-end;
}

.plate-modal.show {
    display: flex;
}

.plate-modal .modal-content {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.plate-modal .modal-title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.plate-modal .plate-option {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    text-align: center;
    margin-bottom: 6px;
    background: #f5f5f5;
}

.plate-modal .plate-option.selected {
    background: #00CDB2;
    color: #fff;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-state .empty-text {
    font-size: 14px;
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.toast {
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.25s, transform 0.25s;
    max-width: 280px;
    text-align: center;
    word-break: break-all;
}

.toast.show {
    opacity: 1;
    transform: scale(1);
}

.toast-success {
    background: rgba(0,166,96,0.9);
}

.toast-error {
    background: rgba(229,57,53,0.9);
}

.toast-warning {
    background: rgba(255,152,0,0.9);
}

.toast-loading {
    background: rgba(0,0,0,0.8);
    padding: 20px 28px;
}

.toast-loading::before {
    content: '';
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: toast-spin 0.6s linear infinite;
}

@keyframes toast-spin {
    to { transform: rotate(360deg); }
}

/* ===== Pull-to-refresh ===== */
.pull-refresh-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: transform 0.2s ease;
    font-size: 12px;
    color: #999;
}

.pull-refresh-indicator .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #eee;
    border-top-color: #00CDB2;
    border-radius: 50%;
    animation: toast-spin 0.6s linear infinite;
    display: none;
}

.pull-refresh-indicator.refreshing .spinner {
    display: block;
}

.pull-refresh-indicator.refreshing .arrow {
    display: none;
}

.pull-refresh-indicator .arrow {
    font-size: 16px;
    color: #ccc;
    transition: transform 0.2s;
}

.pull-refresh-indicator.ready .arrow {
    transform: rotate(180deg);
    color: #00CDB2;
}

/* ===== Sign-in Button ===== */
.sign-btn {
    background: #00CDB2;
    color: #fff;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.sign-btn:disabled {
    background: #ccc;
}

.sign-btn.signed {
    background: #eee;
    color: #999;
}

/* ===== Profile Stats Row ===== */
.profile-stats-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    margin: 0 12px 12px;
    padding: 16px;
    gap: 8px;
}

.profile-stats-row .stat-item {
    flex: 1;
    text-align: center;
}

.profile-stats-row .stat-item .stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.profile-stats-row .stat-item .stat-label {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

.profile-stats-row .stat-divider {
    width: 1px;
    height: 30px;
    background: #f0f0f0;
}

/* ===== Loading ===== */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.text-muted { color: #999; }
.text-small { font-size: 12px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }
