/* CSS Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Variables */
:root {
    --color-primary: #AB5DFF;
    --color-primary-50: #E6F7FF;
    --color-text-primary: #333333;
    --color-text-secondary: #999999;
    --color-background: #F7EFFF;
    --color-card-bg: rgba(255, 255, 255, 0.2);
    --color-badge-bg: #FF5353;
    --color-hot-tag-bg: rgba(0, 0, 0, 0.6);
    --font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --border-radius-lg: 36px;
    --border-radius-md: 10px;
    --border-radius-sm: 11px;
}

/* Base Styles */
html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background-color: #F5F5F5;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* App Container - H5 Mobile Frame (固定高度) */
.app-container {
    width: 100vw;
    height: 100vh;
    max-width: 402px;
    margin: 0 auto;
    background-color: var(--color-background);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Status Bar */
.status-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: relative;
    background-color: var(--color-background);
}

.status-bar-time {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    letter-spacing: -0.3px;
}

.status-bar-notch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background-color: #000000;
    border-radius: 0 0 20px 20px;
    top: 0;
}

.status-bar-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.signal-icon,
.wifi-icon {
    width: 16px;
    height: 12px;
    color: #000000;
}

.battery-icon {
    width: 22px;
    height: 11px;
    border: 1px solid #000000;
    border-radius: 3px;
    position: relative;
    padding: 1px;
}

.battery-icon::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5px;
    height: 4px;
    background-color: #000000;
    border-radius: 0 1px 1px 0;
}

.battery-level {
    width: 70%;
    height: 100%;
    background-color: #000000;
    border-radius: 1px;
}

/* Navigation Tabs - 固定顶部 */
.nav-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 12px 20px 0;
    background-color: var(--color-background);
    flex-shrink: 0;
}

.nav-tab {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.1765em;
    letter-spacing: -0.0294em;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding-bottom: 12px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-tab.active {
    color: #AB5DFF;
    position: relative;
}

.nav-tab .badge {
    position: absolute;
    top: -8px;
    right: -16px;
    background-color: var(--color-badge-bg);
    color: #FFFFFF;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.0417em;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.active-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    display: none;
}

.nav-tab.active .active-indicator {
    display: block;
}

/* Content Area - 可滚动区域 */
.content {
    padding: 12px 16px;
    background-color: var(--color-background);
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Card Grid - 两列瀑布流 */
.card-grid {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.card-grid .column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 181px;
}

/* Card */
.card {
    width: 181px;
    height: auto;
    background-color: var(--color-card-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid #E8E8E8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:active {
    transform: scale(0.98);
}

.card-image {
    position: relative;
    width: 181px;
    height: 210px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.hot-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(251, 100, 183, 0.9) 0%, rgba(194, 123, 255, 0.9) 100%);
    padding: 6px 12px;
    border-radius: 0 var(--border-radius-md) 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hot-tag.prediction {
    background: linear-gradient(270deg, rgba(221, 100, 251, 1) 0%, rgba(100, 160, 251, 1) 100%);
}

.fire-icon path {
    fill: #FFFFFF;
}

.fire-icon {
    width: 14px;
    height: 14px;
}

.hot-tag span {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
}

.card-info {
    padding: 10px;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    word-wrap: break-word;
}

.card-date {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

/* Bottom Navigation - 固定底部（包含+按钮） */
.bottom-nav {
    position: relative;
    height: 59px;
    background-color: var(--color-background);
    border-top: 1px solid #E9E5EE;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 40px 4px;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    width: auto;
    padding-bottom: 4px;
}

/* 中间 FAB 按钮区域 - 悬浮式布局 */
.nav-add {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -24px;
    margin-bottom: -24px;
}

.add-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 100, 183, 1) 0%, rgba(194, 123, 255, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 6px 16px rgba(194, 123, 255, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 3px solid var(--color-background);
}

.add-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 20px rgba(194, 123, 255, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-button:active {
    transform: scale(0.95);
}

.add-icon {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.nav-item.active .fire-nav-icon path {
    fill: #FF6B35;
    stroke: #000000;
}

.nav-item.active .nav-label {
    color: #333333;
}

.nav-icon {
    width: 24px;
    height: 24px;
}

.fire-nav-icon path {
    fill: #FF6B35;
    stroke: #000000;
    stroke-width: 1;
}

.user-nav-icon path {
    stroke: #666666;
    stroke-width: 1.5;
    fill: none;
}

.nav-label {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 1.43;
    text-align: center;
}

/* Home Indicator - 底部导航栏的一部分 */
.home-indicator {
    width: 134px;
    height: 5px;
    background-color: #000000;
    border-radius: 100px;
}

/* Scrollbar Styling - 隐藏滚动条 */
.content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* H5 嵌入优化 */
@supports (-webkit-touch-callout: none) {
    .app-container {
        -webkit-overflow-scrolling: touch;
    }
}

/* Responsive Design - H5 Mobile First */
@media (max-width: 430px) {
    .app-container {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }

    .content {
        padding: 12px;
    }

    .card-grid {
        justify-content: space-between;
        gap: 8px;
    }

    .card {
        width: 181px;
    }

    .card-image {
        width: 181px;
        height: 210px;
    }
}

@media (max-width: 375px) {
    .nav-tabs {
        gap: 16px;
        padding: 12px 16px 0;
    }

    .nav-tab {
        font-size: 15px;
    }
}

/* Hover Effects (Desktop) */
@media (hover: hover) {
    .card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-tab:hover {
        color: var(--color-text-primary);
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(247, 239, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #E8E8E8;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.safe-area-top {
    padding-top: env(safe-area-inset-top, 0);
}

html {
    -webkit-tap-highlight-color: transparent;
}

img {
    -webkit-touch-callout: none;
    user-select: none;
}

.card-image img {
    background-color: #f0f0f0;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--color-text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    stroke: #CCCCCC;
}

.empty-state p {
    font-size: 16px;
    color: var(--color-text-secondary);
}

/* ========== 详情页样式 ========== */

/* 详情页导航栏 */
.detail-nav {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--color-background);
    flex-shrink: 0;
}

.back-button {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.back-button svg {
    width: 20px;
    height: 20px;
}

.detail-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-left: 12px;
}

/* 详情页内容区域 */
.detail-content {
    padding: 0 16px 16px 16px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: var(--color-background);
}

/* 轮播图 */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.carousel-item {
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background-color: #FFFFFF;
}

/* 详情页标题区域 */
.detail-header {
    padding-bottom: 16px;
}

.detail-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-hot-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.4;
}

.detail-hot-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(251, 100, 183, 0.9), rgba(194, 123, 255, 0.9));
    padding: 4px 10px;
    border-radius: 12px;
}

.detail-hot-tag .fire-icon {
    width: 12px;
    height: 12px;
}

.detail-hot-tag span {
    font-size: 12px;
    font-weight: 500;
    color: #FFFFFF;
}

/* 详情区域 */
.detail-section {
    margin-bottom: 20px;
}

.detail-section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.detail-section p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* 详情页底部操作栏 */
.detail-tabbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 24px 20px;
    background-color: var(--color-background);
    border-top: 1px solid #E9E5EE;
    flex-shrink: 0;
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666666;
}

.tabbar-item svg {
    width: 24px;
    height: 24px;
}

.tabbar-item span {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
}

.tabbar-item.reject {
    color: #666666;
}

.tabbar-item.reject span {
    color: #666666;
}

/* ========== 个人页面样式 ========== */

/* 个人页面导航栏 */
.profile-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: transparent;
    flex-shrink: 0;
}

.menu-button {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.menu-button svg {
    width: 24px;
    height: 24px;
}

/* 个人页面内容区域 */
.profile-content {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: transparent;
}

/* 用户信息区域 */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 24px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 4px;
}

.profile-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-network-tag {
    background: linear-gradient(135deg, rgba(251, 100, 183, 0.15), rgba(194, 123, 255, 0.15));
    padding: 4px 12px;
    border-radius: 4px;
}

.profile-network-tag span {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #AB5DFF;
}

.profile-network {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin: 0;
}

/* 个人页面分区 */
.profile-section {
    padding: 0 16px 24px;
}

.section-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 16px;
}

/* 我的景区网格 */
.scenic-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.scenic-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scenic-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.scenic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scenic-image.custom-image {
    background: rgba(0, 0, 0, 0.05);
    border: 1px dashed #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenic-image.custom-image svg {
    width: 24px;
    height: 24px;
}

.scenic-name {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-primary);
}

/* 历史分享区域：图标与标题整体靠左，与「我的景区」等小标题对齐 */
.history-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.history-title {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
}

.clock-icon {
    width: 20px;
    height: 20px;
}

/* 历史分享不规则网格 - Figma风格 */
.history-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    height: 320px;
}

.history-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-item.h-item-1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.history-item.h-item-2 {
    grid-column: 2;
    grid-row: 1;
}

.history-item.h-item-3 {
    grid-column: 3 / 5;
    grid-row: 1;
}

.history-item.h-item-4 {
    grid-column: 2;
    grid-row: 2 / 4;
}

.history-item.h-item-5 {
    grid-column: 3;
    grid-row: 2;
}

.history-item.h-item-6 {
    grid-column: 4;
    grid-row: 2 / 4;
}

.location-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-badge svg {
    width: 14px;
    height: 14px;
}

/* ========== 新增页面样式 ========== */

/* 新增页面导航栏 */
.add-nav {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: var(--color-background);
    flex-shrink: 0;
}

/* 新增页面内容区域 */
.add-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: var(--color-background);
    padding: 0 16px;
}

/* 添加字段 */
.add-field {
    margin-bottom: 20px;
}

.add-input {
    width: 100%;
    padding: 12px 0;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid #E9E5EE;
    outline: none;
}

.add-input::placeholder {
    color: #999999;
}

.add-text{
    color: var(--color-text-secondary);
    font-size: 14px;
    width: 18%;
}

.add-textarea {
    width: 90%;
    min-height: 120px;
    padding: 2px 0;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid #E9E5EE;
    outline: none;
    resize: none;
}

.add-textarea::placeholder {
    color: #999999;
}

/* 选择景区区域 */
.add-section {
    margin-bottom: 20px;
    display: flex;
}

.section-label {
    display: block;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    margin-right: 10px;
}

/* 标签列表 */
.tag-list {
    display: flex;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 400;
}

.tag span {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.tag.tag-blue {
    background-color: #D8E7FF;
    color: #005ACE;
}

.tag.tag-blue svg path {
    stroke: #005ACE;
}

.tag.tag-green {
    background-color: #D2EEDA;
    color: #009A0A;
}

.tag.tag-orange {
    background-color: #FAE9CC;
    color: #B97303;
}

/* 图片上传正方形 */
.image-upload-square {
    margin-left: 20px;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #CCCCCC;
}

.image-upload-square svg {
    width: 32px;
    height: 32px;
}

/* Loading弹窗 */
.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    border-radius: 12px;
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(251, 100, 183, 0.2);
    border-top-color: rgba(251, 100, 183, 1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #333333;
}

/* 不通过对话框 */
.reject-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.reject-dialog {
    width: 354px;
    background: linear-gradient(135deg, #CB9AFF 0%, #FFFEFE 100%);
    border-radius: 30px;
    padding: 24px;
}

.reject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reject-title {
    margin: 0 auto;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #333333;
}

.reject-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.reject-options {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
}

.reject-option {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #333333;
    background: #FFFFFF;
    border-radius: 8px;
}

.reject-option.active {
    background: linear-gradient(90deg, rgba(251, 100, 183, 1) 0%, rgba(194, 123, 255, 1) 100%);
    color: #FFFFFF;
}

.reject-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #E9E5EE;
    border-radius: 4px;
}

.reject-input-area {
    margin-bottom: 20px;
}

.reject-input {
    width: 100%;
    height: 160px;
    padding: 12px;
    padding-bottom: 44px;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #999999;
    border: 1px solid #E9E5EE;
    border-radius: 6px;
    outline: none;
    resize: none;
}

.reject-actions {
    display: flex;
    gap: 12px;
}

.reject-cancel,
.reject-confirm {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 22px;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.reject-cancel {
    background: #F5F5F5;
    color: #333333;
}

.reject-confirm {
    background: linear-gradient(90deg, rgba(251, 100, 183, 1) 0%, rgba(194, 123, 255, 1) 100%);
    color: #FFFFFF;
}

/* 编辑页面图片横向滚动 */
.edit-image-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
}

.edit-image-scroll::-webkit-scrollbar {
    display: none;
}

.edit-image-item {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.edit-image-remove svg {
    width: 12px;
    height: 12px;
}

/* 编辑页面 */
.edit-nav {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.edit-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background-color: var(--color-background);
    padding: 16px;
}

.edit-title-input {
    width: 100%;
    padding: 0;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    outline: none;
    resize: none;
}

.edit-body-input {
    width: 100%;
    min-height: 200px;
    padding: 0;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-primary);
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    line-height: 1.5;
}

.edit-section {
    margin-bottom: 20px;
}

.edit-save-bar {
    padding: 12px 81px 20px;
    background-color: var(--color-background);
    flex-shrink: 0;
}

.edit-save-button {
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, rgba(251, 100, 183, 1) 0%, rgba(194, 123, 255, 1) 100%);
    border: none;
    border-radius: 20px;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    cursor: pointer;
}

/* 保存按钮 */
.save-bar {
    padding: 12px 81px 20px;
    background-color: var(--color-background);
    flex-shrink: 0;
}

.save-button {
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, rgba(251, 100, 183, 1) 0%, rgba(194, 123, 255, 1) 100%);
    border: none;
    border-radius: 20px;
    font-family: 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    cursor: pointer;
}

/* ========== 个人页面背景装饰 ========== */
.profile-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decor-ellipse {
    position: absolute;
    border-radius: 50%;
}

.decor-ellipse.ellipse-1 {
    width: 242px;
    height: 242px;
    background: linear-gradient(135deg, #CB9AFF 0%, rgba(203, 154, 255, 0) 100%);
    top: -78px;
    left: 24px;
}

.decor-ellipse.ellipse-2 {
    width: 242px;
    height: 242px;
    background: linear-gradient(135deg, #FFFFA7 0%, rgba(255, 255, 167, 0) 100%);
    top: -51px;
    right: -120px;
}

.decor-ellipse.ellipse-3 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #FF9AFD 0%, rgba(255, 154, 253, 0) 100%);
    top: 50px;
    left: 178px;
}

/* ========== 下拉刷新样式 ========== */
.pull-to-refresh {
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: height 0.3s ease;
    background-color: var(--color-background);
}

.pull-arrow {
    width: 24px;
    height: 24px;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease;
}

.pull-arrow.rotate {
    transform: rotate(180deg);
}

.pull-arrow svg {
    width: 100%;
    height: 100%;
}

.pull-text {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

/* ========== 弹框组件样式 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background-color: #FFFFFF;
    border-radius: var(--border-radius-md);
    padding: 24px 32px;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-message {
    font-family: var(--font-family);
    font-size: 16px;
    color: var(--color-text-primary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-success .modal-message {
    color: #52C41A;
}

.modal-error .modal-message {
    color: #FF4D4F;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-cancel {
    background-color: #F0F0F0;
    color: var(--color-text-primary);
}

.modal-btn-cancel:hover {
    background-color: #E0E0E0;
}

.modal-btn-confirm {
    background: linear-gradient(90deg, rgba(251, 100, 183, 1) 0%, rgba(194, 123, 255, 1) 100%);
    color: #FFFFFF;
}

.modal-btn-confirm:hover {
    opacity: 0.9;
}

/* ========== 图片上传样式 ========== */
.edit-image-upload {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-color: #F5F5F5;
    border: 2px dashed #CCCCCC;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.edit-image-upload:hover {
    border-color: var(--color-primary);
    background-color: rgba(171, 93, 255, 0.1);
}

.edit-image-upload svg {
    width: 32px;
    height: 32px;
    stroke: #999999;
}

.edit-image-upload:hover svg {
    stroke: var(--color-primary);
}

.edit-image-upload input[type="file"] {
    display: none;
}