/* 我的(Mine)页样式: 由 index.html 抽出 */
/* ===== MINE (我的) PAGE ===== */
.mine-page { background: #1a1a2e; min-height: calc(100vh - 72px); padding: 0; overflow-y: auto; }
.mine-profile-section { position: relative; background: #1e1e3a; padding: 16px; }
.mine-profile-header { display: flex; align-items: center; gap: 14px; position: relative; }
.mine-avatar-wrap { flex-shrink: 0; }
.mine-avatar { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #363660; object-fit: cover; background: #363660; }
.mine-user-info { flex: 1; }
.mine-nickname-row { display: flex; align-items: center; gap: 6px; }
.mine-nickname { font-size: 16px; font-weight: 700; color: #fff; }
.mine-gender-icon { font-size: 12px; padding: 2px 5px; border-radius: 10px; }
.mine-gender-icon.male { background: rgba(59,130,246,0.2); color: #60a5fa; }
.mine-gender-icon.female { background: rgba(236,72,153,0.2); color: #f472b6; }
.mine-gender-label { font-size: 11px; color: #888; margin-top: 2px; }
.mine-edit-btn {
    position: absolute; bottom: 0; right: 0;
    width: 26px; height: 26px; border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    color: #fff; font-size: 13px; display: flex;
    align-items: center; justify-content: center;
    cursor: pointer; border: 2px solid #2b2b4e;
    -webkit-tap-highlight-color: transparent;
}
/* Edit Profile Overlay */
.edit-profile-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 600;
    display: none; align-items: center; justify-content: center;
}
.edit-profile-overlay.show { display: flex; }
.edit-profile-panel {
    background: #2b2b4e; border-radius: 20px; width: 92%; max-width: 400px;
    max-height: 85vh; overflow-y: auto;
    animation: slideUp 0.25s ease-out;
}
.edit-profile-header {
    display: flex; align-items: center; padding: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.edit-profile-back {
    font-size: 26px; color: #fff; cursor: pointer;
    background: none; border: none; padding: 0 8px;
    -webkit-tap-highlight-color: transparent;
}
.edit-profile-title {
    flex: 1; text-align: center; font-size: 17px;
    font-weight: 700; color: #fff;
}
.edit-profile-body { padding: 20px 24px 30px; }
.edit-profile-avatar-section {
    display: flex; justify-content: center; margin-bottom: 28px;
}
.edit-profile-avatar-wrap {
    position: relative; width: 100px; height: 100px; cursor: pointer;
}
.edit-profile-avatar {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    border: 3px solid rgba(255,255,255,0.15);
}
.edit-profile-camera {
    position: absolute; bottom: 2px; right: 2px;
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; border: 2px solid #2b2b4e;
}
.edit-profile-field { margin-bottom: 22px; }
.edit-profile-label {
    font-size: 14px; font-weight: 600; color: #a78bfa; margin-bottom: 10px; display: block;
}
.edit-profile-input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 25px; padding: 10px 16px;
}
.edit-profile-input-icon { font-size: 18px; opacity: 0.5; }
.edit-profile-input {
    flex: 1; background: none; border: none; outline: none;
    color: #eee; font-size: 15px;
}
.edit-profile-input::placeholder { color: rgba(255,255,255,0.3); }
.edit-profile-gender-row { display: flex; gap: 12px; }
.edit-profile-gender-option {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 16px 10px; border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,0.04); border: 2px solid rgba(255,255,255,0.08);
    transition: all 0.2s; -webkit-tap-highlight-color: transparent;
}
.edit-profile-gender-option.selected {
    border-color: #a78bfa; background: rgba(167,139,250,0.1);
}
.edit-gender-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.edit-gender-icon.male-icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
.edit-gender-icon.female-icon { background: rgba(236,72,153,0.15); color: #f472b6; }
.edit-profile-gender-option span { font-size: 13px; color: #ccc; }
.edit-profile-save-btn {
    width: 100%; padding: 14px; border: none; border-radius: 25px; cursor: pointer;
    font-size: 16px; font-weight: 700; color: #fff;
    background: linear-gradient(90deg, #a78bfa, #f472b6);
    margin-top: 8px; -webkit-tap-highlight-color: transparent;
}
.edit-profile-save-btn:active { opacity: 0.8; }
.mine-stats { display: flex; gap: 24px; margin-top: 8px; }
.mine-stat-item { text-align: center; cursor: pointer; }
.mine-stat-item:active { opacity: 0.7; }
.mine-stat-label { font-size: 11px; color: #999; }
.mine-stat-value { font-size: 16px; font-weight: 700; color: #fff; margin-top: 1px; }
.mine-chip-badge { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; background: #252545; border-radius: 18px; padding: 7px 14px; }
.mine-chip-badge img { width: 18px; height: 18px; }
.mine-chip-label { font-size: 11px; color: #999; }
.mine-chip-value { font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.mine-action-btns { margin-top: 16px; }
.mine-action-btn { display: flex; align-items: center; padding: 14px 16px; background: #252545; border-radius: 12px; margin-bottom: 8px; cursor: pointer; border: none; width: 100%; }
.mine-action-btn:active { background: #2d2d55; }
.mine-action-btn .btn-icon { font-size: 18px; margin-right: 10px; }
.mine-action-btn .btn-text { flex: 1; text-align: left; font-size: 14px; color: #fff; font-weight: 500; }
.mine-action-btn .btn-arrow { color: #666; font-size: 16px; }
.mine-content-section { margin-top: 12px; background: #1e1e3a; border-radius: 14px; min-height: 200px; overflow: hidden; }
.mine-content-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mine-content-tab { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; color: #888; cursor: pointer; position: relative; font-weight: 500; background: none; border: none; }
.mine-content-tab.active { color: #fff; font-weight: 700; }
.mine-content-tab.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 3px; background: #ff4d6a; border-radius: 2px; }
.mine-photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 8px 10px; }
.mine-photo-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #252545; }
.mine-photo-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; display: block; }
.mine-photo-add { display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px dashed #555; background: #1e1e3a; }
.mine-photo-add:active { background: #252545; }
.mine-photo-add .add-icon { font-size: 28px; color: #888; }
.mine-photo-delete { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: rgba(0,0,0,0.65); border: none; border-radius: 50%; color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; line-height: 1; }
.mine-photo-delete:active { background: rgba(255,0,0,0.7); }
/* Photo Viewer (fullscreen swipe) */
.photo-viewer-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); z-index: 9998; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.photo-viewer-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 22px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.photo-viewer-container { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.photo-viewer-container img { max-width: 90%; max-height: 80vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.photo-viewer-counter { position: absolute; bottom: 24px; color: rgba(255,255,255,0.6); font-size: 14px; }
.photo-viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 28px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 9999; }
.photo-viewer-arrow.left { left: 10px; }
.photo-viewer-arrow.right { right: 10px; }
.mine-dynamics-feed { padding: 0 12px 12px; }
/* Publish entry card at top of 我的 > 动态 feed. Dashed border box with a
   large + sign, tappable to open the publish flow. */
.mine-dyn-publish-entry {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; padding: 18px 12px; margin: 12px 0;
    border: 2px dashed rgba(212, 167, 106, 0.5);
    border-radius: 12px; background: rgba(212, 167, 106, 0.06);
    color: #d4a76a; font-size: 14px; font-weight: 600;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mine-dyn-publish-entry:active { transform: scale(0.99); opacity: 0.85; }
.mine-dyn-publish-entry .mine-dyn-publish-plus {
    width: 28px; height: 28px; border-radius: 50%;
    background: #d4a76a; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; line-height: 1;
}
.mine-empty { text-align: center; color: #666; padding: 40px 0; font-size: 14px; }
