/* ==========================================
   个人中心 - 网页端内容页样式 (mine.css)
   作为首页 iframe 内容展示，与首页风格统一
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background-color: #eef3fa;
    background-image: radial-gradient(circle at 85% 8%, rgba(59, 130, 246, 0.08), transparent 40%),
                      radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.06), transparent 40%);
    color: #333;
    min-height: 100vh;
}

.mine-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= 欢迎横幅 ================= */
.welcome-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    border-radius: 18px;
    padding: 26px 32px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.28);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '\f4fe';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 40px;
    top: -20px;
    font-size: 140px;
    color: rgba(255, 255, 255, 0.07);
}

.banner-text {
    position: relative;
    z-index: 1;
}

.banner-text h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.banner-text p {
    font-size: 14px;
    opacity: 0.85;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.banner-stats {
    display: flex;
    gap: 36px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.logout-btn-sm {
    height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.logout-btn-sm:hover {
    background: rgba(227, 77, 89, 0.85);
    border-color: #e34d59;
}

/* ================= 面板切换 ================= */
.panel.hidden {
    display: none;
}

.panel {
    display: block;
}

.panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-head h3 {
    font-size: 20px;
    font-weight: 700;
    color: #26314a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-head h3 i {
    color: #2563eb;
}

.panel-head p {
    font-size: 13px;
    color: #93a0b8;
}

/* ----- 个人资料卡 ----- */
.profile-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.28);
    margin-bottom: 20px;
}

.profile-card::before,
.profile-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.profile-card::before {
    width: 240px;
    height: 240px;
    right: -70px;
    top: -100px;
}

.profile-card::after {
    width: 160px;
    height: 160px;
    right: 200px;
    bottom: -90px;
    background: rgba(255, 255, 255, 0.05);
}

.profile-avatar {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.35);
    display: block;
    background: #e8f1ff;
}

.avatar-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    border: 3px solid #2563eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

.vip-tag {
    flex-shrink: 0;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.4);
}

.profile-desc {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 14px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.profile-tag i {
    font-size: 11px;
}

.profile-level {
    position: relative;
    z-index: 1;
    width: 220px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 18px 20px;
    backdrop-filter: blur(4px);
}

.level-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 12px;
}

.level-head span {
    opacity: 0.85;
}

.level-head strong {
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(90deg, #fde68a, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.level-bar {
    height: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.level-bar-fill {
    height: 100%;
    width: 68%;
    border-radius: 8px;
    background: linear-gradient(90deg, #fde68a, #fbbf24);
}

.level-tip {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 10px;
}

/* ----- 健康数据总览 ----- */
.health-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.health-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: default;
}

.health-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 99, 240, 0.12);
}

.health-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.health-blue .health-icon { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.health-green .health-icon { background: linear-gradient(135deg, #10b981, #34d399); }
.health-orange .health-icon { background: linear-gradient(135deg, #f97316, #fb923c); }
.health-purple .health-icon { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.health-info {
    min-width: 0;
}

.health-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.health-value {
    font-size: 22px;
    font-weight: 700;
    color: #26314a;
    white-space: nowrap;
}

.health-value small {
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

.health-status {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.health-status.good {
    color: #10b981;
}

/* ----- 快捷功能卡片 ----- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.quick-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #edf1f8;
    position: relative;
    overflow: hidden;
}

.quick-card::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
    right: -30px;
    top: -30px;
    transition: transform 0.3s;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(30, 99, 240, 0.16);
}

.quick-card:hover::after {
    transform: scale(1.6);
}

.quick-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    margin: 0 auto 16px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.icon-green { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.icon-darkblue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.icon-cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }

.quick-card h5 {
    font-size: 16px;
    font-weight: 600;
    color: #26314a;
    margin-bottom: 8px;
}

.quick-card p {
    font-size: 13px;
    color: #93a0b8;
}

/* ----- 控糖目标 & 最近动态 ----- */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.goal-card,
.activity-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head h3 {
    font-size: 16px;
    font-weight: 600;
    color: #26314a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-head h3 i {
    color: #2563eb;
    font-size: 15px;
}

.section-link {
    font-size: 13px;
    color: #2563eb;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 16px;
    background: #eef4ff;
    transition: background 0.2s, color 0.2s;
}

.section-link:hover {
    background: #2563eb;
    color: #fff;
}

.goal-item {
    margin-bottom: 18px;
}

.goal-item:last-child {
    margin-bottom: 0;
}

.goal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.goal-name {
    font-size: 14px;
    color: #5a6478;
}

.goal-percent {
    font-size: 14px;
    font-weight: 700;
    color: #26314a;
}

.goal-bar {
    height: 8px;
    border-radius: 8px;
    background: #f1f5fb;
    overflow: hidden;
}

.goal-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.6s ease;
}

.goal-fill-green { background: linear-gradient(90deg, #10b981, #34d399); }
.goal-fill-blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.goal-fill-orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    position: relative;
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: #eef2f8;
}

.activity-item:last-child::before {
    display: none;
}

.activity-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 3px #fff;
}

.dot-green { background: #10b981; }
.dot-blue { background: #3b82f6; }
.dot-orange { background: #f59e0b; }
.dot-purple { background: #8b5cf6; }

.activity-body p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 4px;
    line-height: 1.5;
}

.activity-time {
    font-size: 12px;
    color: #a4b0c6;
}

/* ================= 我的方案 ================= */
.plan-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plan-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
    transition: transform 0.25s, box-shadow 0.25s;
}

.plan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 99, 240, 0.12);
}

.plan-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.plan-icon-green { background: linear-gradient(135deg, #10b981, #34d399); }
.plan-icon-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.plan-icon-orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.plan-icon-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }

.plan-info {
    flex: 1;
    min-width: 0;
}

.plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.plan-top h4 {
    font-size: 16px;
    font-weight: 600;
    color: #26314a;
}

.plan-status {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 20px;
    flex-shrink: 0;
    font-weight: 500;
}

.status-active {
    color: #10b981;
    background: #e8f9f1;
}

.status-pending {
    color: #f59e0b;
    background: #fef5e5;
}

.plan-desc {
    font-size: 13px;
    color: #93a0b8;
    margin-bottom: 12px;
}

.plan-bar {
    height: 8px;
    border-radius: 8px;
    background: #f1f5fb;
    overflow: hidden;
    margin-bottom: 10px;
}

.plan-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 0.6s ease;
}

.plan-fill-green { background: linear-gradient(90deg, #10b981, #34d399); }
.plan-fill-blue { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.plan-fill-orange { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.plan-fill-purple { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.plan-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #a4b0c6;
}

.plan-meta b {
    color: #2563eb;
}

/* ================= 我的建议 ================= */
.advice-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.advice-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.advice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 99, 240, 0.12);
}

.advice-img-wrap {
    width: 140px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.advice-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.advice-card:hover .advice-img-wrap img {
    transform: scale(1.08);
}

.advice-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.advice-cat {
    align-self: flex-start;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

.cat-green { color: #10b981; background: #e8f9f1; }
.cat-blue { color: #2563eb; background: #eaf1ff; }
.cat-orange { color: #f59e0b; background: #fef5e5; }

.advice-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #26314a;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.advice-summary {
    font-size: 13px;
    color: #93a0b8;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.advice-time {
    font-size: 12px;
    color: #b6c2d8;
    margin-top: 8px;
}

/* ================= 打卡记录 ================= */
.check-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.check-stat {
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.check-stat-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.check-stat-green { background: linear-gradient(135deg, #059669, #10b981); }
.check-stat-orange { background: linear-gradient(135deg, #ea580c, #f97316); }

.check-stat-num {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.check-stat-label {
    font-size: 13px;
    opacity: 0.9;
}

.check-week-card,
.check-list-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
    margin-bottom: 16px;
}

.check-week-card h4,
.check-list-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #26314a;
    margin-bottom: 18px;
}

.week-row {
    display: flex;
    justify-content: space-between;
}

.week-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.week-day {
    font-size: 13px;
    color: #93a0b8;
}

.week-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 2px solid #e3eaf5;
    color: #fff;
    background: #f1f5fb;
}

.week-dot.done {
    background: linear-gradient(135deg, #10b981, #34d399);
    border-color: #10b981;
}

.week-dot.today {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: #2563eb;
    font-size: 14px;
    font-weight: 600;
}

.check-list {
    list-style: none;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5fb;
}

.check-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.check-date {
    width: 52px;
    height: 56px;
    border-radius: 12px;
    background: #f0f5ff;
    color: #2563eb;
    font-size: 12px;
    text-align: center;
    padding-top: 8px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.check-date b {
    font-size: 18px;
    font-weight: 700;
}

.check-info {
    flex: 1;
    min-width: 0;
}

.check-info p {
    font-size: 14px;
    color: #475569;
    margin-bottom: 4px;
}

.check-info p b {
    color: #2563eb;
}

.check-time {
    font-size: 12px;
    color: #a4b0c6;
}

.check-badge {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 16px;
    flex-shrink: 0;
    font-weight: 500;
}

.badge-done {
    color: #10b981;
    background: #e8f9f1;
}

.badge-pending {
    color: #f59e0b;
    background: #fef4e6;
}

/* 打卡列表头部：标题 + 筛选 */
.check-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.check-list-head h4 {
    margin-bottom: 0;
}

.check-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.check-filter-select,
.check-filter-input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e2eaf5;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s;
}

.check-filter-select:focus,
.check-filter-input:focus {
    border-color: #2563eb;
    background: #fff;
}

.check-filter-sep {
    font-size: 13px;
    color: #a4b0c6;
}

.check-filter-btn {
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    cursor: pointer;
    transition: opacity 0.2s;
}

.check-filter-btn:hover {
    opacity: 0.88;
}

.check-filter-btn.reset {
    background: #eef3fa;
    color: #64748b;
}

.check-filter-btn.reset:hover {
    background: #e2eaf5;
}

.check-empty {
    padding: 28px 0;
    text-align: center;
    font-size: 13px;
    color: #a4b0c6;
    list-style: none;
}

/* 打卡列表删除按钮 */
.check-del {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fef2f2;
    color: #ef4444;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.check-del:hover {
    background: #ef4444;
    color: #fff;
}

/* 打卡记录分页 */
.check-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5fb;
}

.check-page-btn {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #e2eaf5;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.check-page-btn:hover:not(:disabled) {
    border-color: #2563eb;
    color: #2563eb;
}

.check-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.check-page-info {
    font-size: 13px;
    color: #64748b;
}

/* ================= 帮助中心 ================= */
.faq-card {
    background: #fff;
    border-radius: 16px;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
}

.faq-item {
    border-bottom: 1px solid #f1f5fb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #26314a;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #2563eb;
}

.faq-question span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-question span i {
    color: #2563eb;
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.faq-arrow {
    font-size: 13px;
    color: #a4b0c6;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: #2563eb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    padding: 0 0 18px 30px;
}

/* 底部提示 */
.content-tip {
    text-align: center;
    color: #b6c2d8;
    font-size: 13px;
    padding: 8px 0;
}

/* ================= 响应式 ================= */
@media (max-width: 1100px) {
    .health-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-card {
        flex-wrap: wrap;
    }

    .profile-level {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .banner-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 12px;
    }

    .banner-stats {
        gap: 20px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .mine-page {
        padding: 16px;
    }

    .welcome-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .banner-actions {
        align-items: flex-start;
        width: 100%;
    }

    .health-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-card {
        padding: 24px 20px;
    }

    .profile-name {
        font-size: 20px;
    }

    .plan-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .check-week-card .week-row {
        gap: 8px;
    }

    .advice-card {
        flex-direction: column;
    }

    .advice-img-wrap {
        width: 100%;
        height: 160px;
    }
}

/* ================= 基本资料 & 健康档案 ================= */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.card-head h3 {
    font-size: 16px;
    font-weight: 600;
    color: #26314a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-head h3 i {
    color: #2563eb;
    font-size: 15px;
}

.card-sub {
    font-size: 12px;
    color: #a4b0c6;
}

.edit-btn {
    height: 32px;
    padding: 0 14px;
    border: 1px solid #2563eb;
    border-radius: 16px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    font-family: inherit;
}

.edit-btn:hover {
    background: #2563eb;
    color: #fff;
}

/* 基本资料列表 */
.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px dashed #eef2f8;
    min-width: 0;
}

.info-label {
    font-size: 13px;
    color: #93a0b8;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.info-label i {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.info-value {
    font-size: 14px;
    color: #26314a;
    font-weight: 500;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 健康档案网格 */
.record-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.record-item {
    background: #f8fafd;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid #f1f5fb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.record-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 99, 240, 0.08);
}

.record-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-label i {
    margin-right: 4px;
    font-size: 11px;
    color: #2563eb;
}

.record-value {
    font-size: 18px;
    font-weight: 700;
    color: #26314a;
    margin-bottom: 6px;
    white-space: nowrap;
}

.record-value small {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
}

.record-status {
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.record-status.good {
    color: #10b981;
    background: #e8f9f1;
}

.record-status.normal {
    color: #2563eb;
    background: #eaf1ff;
}

/* ================= 账号与安全 ================= */
.account-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(30, 99, 240, 0.06);
    border: 1px solid #edf1f8;
}

.account-list {
    display: flex;
    flex-direction: column;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5fb;
    cursor: pointer;
    transition: background 0.2s;
}

.account-item:last-child {
    border-bottom: none;
}

.account-item:hover {
    background: #fafcff;
}

.account-left {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #26314a;
    font-weight: 500;
}

.account-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.icon-blue { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.icon-green { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.icon-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.icon-red { background: linear-gradient(135deg, #e34d59, #f05563); }

.account-item.account-logout .account-left span {
    color: #e34d59;
}

.account-item.account-logout:hover {
    background: #fff6f7;
}

.account-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c3cdde;
    font-size: 13px;
}

.account-hint {
    font-size: 13px;
    color: #93a0b8;
}

.account-hint.account-done {
    color: #10b981;
}

.account-done i {
    margin-right: 3px;
}

@media (max-width: 900px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .info-list {
        grid-template-columns: 1fr;
    }

    .record-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
