/* ============================================================
   湘红智旅 - 个人中心页面样式（统一项目红色主题风格）
   ============================================================ */

.profile-page {
    background: #F5F5F5 !important;
}

.profile-page .status-bar {
    background: linear-gradient(180deg, #C41E3A 0%, #C41E3A 100%);
    box-shadow: none;
}

/* ==================== 头部区域（红色渐变） ==================== */
.prof-header {
    position: relative;
    background: linear-gradient(180deg, #C41E3A 0%, #C41E3A 10%, #A01828 55%, #F5F5F5 100%);
    padding: 0 16px;
    overflow: hidden;
    z-index: 0;
}

/* 背景装饰 */
.prof-header::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}

.prof-header::after {
    content: '';
    position: absolute;
    top: 80px;
    right: 10px;
    width: 90px;
    height: 90px;
    background: rgba(255,215,0,0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* 设置按钮 - 右上角 */
.prof-settings-btn {
    position: absolute;
    top: calc(var(--status-bar-height, 44px) + 6px);
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    border: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.prof-settings-btn:active {
    background: rgba(255,255,255,0.3);
    transform: scale(0.82);
}

/* 用户信息行 */
.prof-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: calc(var(--status-bar-height, 43px) - 8px);
    padding-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* 头像 */
.prof-avatar-wrap { position: relative; flex-shrink: 0; }

.prof-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    border: 3px solid rgba(255,255,255,0.45);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s;
}

.prof-avatar-img:active { transform: scale(1.12); }

.prof-avatar-input { display: none; }

/* 头像相机覆盖层 */
.prof-avatar-overlay {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #E8384F, #C41E3A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-size: 10px;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

/* 用户名/未登录 */
.prof-user-info { flex: 1; min-width: 0; }

.prof-name-text {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

/* 等级标签 */
.prof-level-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B0000;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(255,165,0,0.25);
}

.prof-login-hint {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    margin-top: 4px;
}

/* ==================== 数据统计栏 ==================== */
.prof-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: #fff;
    border-radius: 14px;
    margin: -10px 16px 14px;
    padding: 14px 4px 12px;
    box-shadow: 0 2px 12px rgba(196,30,58,0.10);
    position: relative;
    z-index: 2;
}

.prof-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 10px;
    transition: background 0.15s;
    flex: 1;
}

.prof-stat-item:active { background: #FFF5F5; }

.prof-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: #2D2D2D;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.prof-stat-num.red   { color: #C41E3A; }
.prof-stat-num.gold  { color: #B8860B; }

.prof-stat-label {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
    white-space: nowrap;
    font-weight: 500;
}

.prof-stat-divider {
    width: 1px;
    height: 28px;
    background: #EEE;
    flex-shrink: 0;
}

/* ==================== 区块标题（移动端优化，无竖条设计） ==================== */
.prof-section-header {
    padding: 14px 16px 8px;
}

.prof-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    line-height: 1.2;
    padding: 10px 0 6px;
    margin: 0 14px;
    border-bottom: 1px solid #F0F0F0;
}

/* ==================== 网格包裹容器 ==================== */
.prof-grid-wrap { 
    margin: 0 16px 8px; 
    position: relative;
    z-index: 1;
}

/* ==================== 我的服务（4列x2行） ==================== */
.prof-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 14px;
    padding: 12px 6px 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    gap: 4px;
    position: relative;
    z-index: 1;
}

.prof-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.15s;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.prof-service-item:active {
    background: #FFF5F5;
    transform: scale(0.95);
}

/* 服务图标：SVG图标容器 */
.prof-serv-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-serv-icon svg {
    width: 100%;
    height: 100%;
}

.prof-serv-label {
    font-size: 11px;
    color: #444;
    text-align: center;
    font-weight: 500;
}

/* ==================== 我的工具（4列x1行） ==================== */
.prof-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 14px;
    padding: 16px 6px 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    gap: 2px;
}

.prof-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 4px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.15s;
}

.prof-tool-item:active {
    background: #FFF5F5;
    transform: scale(0.84);
}

/* 工具图标：SVG图标容器 */
.prof-tool-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-tool-label {
    font-size: 13px;
    color: #444;
    text-align: center;
    font-weight: 600;
}

/* ==================== 退出登录 ==================== */
.prof-logout-area { padding: 16px 40px 24px; }

.prof-logout-btn {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: 1px solid #E8E8E8;
    background: #fff;
    color: #999;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.prof-logout-btn:active {
    background: #FFF5F5;
    color: #C41E3A;
    border-color: #f0d0d4;
}

/* ==================== 帮助与反馈 - FAQ折叠 ==================== */
.faq-item {
    border: 1px solid #F0F0F0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s;
}
.faq-item:active { background: #FAFAFA; }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; color: #333; }
.faq-arrow { font-size: 12px; color: #CCC; transition: transform 0.2s; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-size: 13px; color: #888; line-height: 1.6; margin-top: 0; }
.faq-item.active .faq-a { margin-top: 10px; }
.faq-item.active { border-color: #FFE0E0; }

/* ==================== 关于我们 - 功能卡片 ==================== */
.about-fn-card {
    background: linear-gradient(135deg, #FFF0F0, #FFE4E1);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

/* ==================== 列表菜单（设置页/关于我们使用） ==================== */
.prof-list-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 0.5px solid #F0F0F0;
}
.prof-list-item:last-child { border-bottom: none; }
.prof-list-item:active { background: #FAFAFA; }

.prof-list-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; margin-right: 12px; flex-shrink: 0;
}

.prof-list-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.prof-list-arrow { color: #CCC; font-size: 12px; }
.prof-list-badge { font-size: 11px; color: #C41E3A; background: #FFF0F0; padding: 2px 8px; border-radius: 8px; margin-right: 8px; }
.prof-list-label { font-size: 12px; color: #BBB; }

/* 图标背景色 - 各功能不同颜色 */
.bg-blue-light   { background: #EBF5FF; color: #4A90D9; }
.bg-green-light  { background: #E8FAF0; color: #34C759; }
.bg-red-light    { background: #FFF0F0; color: #E8384F; }
.bg-orange-light { background: #FFF3E6; color: #F5A623; }
.bg-gray-light   { background: #F5F5F5; color: #888; }
.bg-purple-light { background: #F3EFFF; color: #9B59B6; }
.bg-gold-light   { background: #FFF8E6; color: #DAA520; }
.bg-pink-light   { background: #FFF0F5; color: #E83E8C; }

/* ==================== 底部版权 ==================== */
.prof-footer {
    text-align: center;
    padding: 20px 16px 34px;
    color: #CCC;
    font-size: 12px;
}

.prof-footer-links span {
    color: #BBB;
    cursor: pointer;
    transition: color 0.2s;
}

.prof-footer-links span:active { color: #C41E3A; }

.prof-footer-sep {
    margin: 0 8px;
    color: #DDD !important;
    cursor: default !important;
}

.prof-footer-copy {
    margin-top: 6px;
    color: #DDD;
    font-size: 11px;
}

/* ==================== 子页面通用样式 ==================== */
.sub-page-container { 
    min-height: 100%; 
    background: #F5F5F5; 
    display: flex;
    flex-direction: column;
}

.sp-header {
    background: #E53935;
    padding: 0 14px 16px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sp-header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding-top: calc(var(--status-bar-height, 44px) * 0.55);
    position: relative;
}

.sp-back-btn {
    position: absolute;
    left: 12px;
    top: calc(50% + 10px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.95);
    font-size: 17px;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.25s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.sp-back-btn:active {
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

.sp-header-title { 
    font-size: 17px; 
    font-weight: 600; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    padding: 0 44px; 
    text-align: center; 
}
.sp-header-right { 
    position: absolute;
    right: 0;
    top: calc(50% + 10px);
    transform: translateY(-50%);
    min-width: 44px; 
    height: 44px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding-right: 12px;
}

.sp-card { background: #fff; border-radius: 12px; margin: 12px 16px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.sp-section-gap { height: 10px; }

.sp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; color: #BBB; }
.sp-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.sp-empty-text { font-size: 14px; }

/* ==================== 设置齿轮图标样式 ==================== */
.settings-cog-icon {
    width: 26px;
    height: 26px;
    color: #fff;
    transition: transform 0.3s ease;
}

.prof-settings-btn:hover .settings-cog-icon,
.prof-settings-btn:active .settings-cog-icon {
    animation: cog-spin 0.5s ease-in-out;
}

@keyframes cog-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}
