/* ==========================================================================
   我的页面 - 现代化 UI（蓝/蓝白色调）
   适用容器：#myPage（index.php）
   说明：完全不改 PHP/HTML 结构，只通过更具体的选择器覆盖 style.css 旧规则
   ========================================================================== */

/* ------------------------------------------------------------
   1. 本页变量与基础容器
   ------------------------------------------------------------ */
#myPage {
    --my-blue-50:  #eff6ff;
    --my-blue-100: #dbeafe;
    --my-blue-200: #bfdbfe;
    --my-blue-300: #93c5fd;
    --my-blue-400: #60a5fa;
    --my-blue-500: #3b82f6;
    --my-blue-600: #2563eb;
    --my-blue-700: #1d4ed8;
    --my-blue-800: #1e40af;
    --my-blue-900: #1e3a8a;
    --my-sky-300:  #7dd3fc;
    --my-sky-500:  #0ea5e9;
    --my-cyan-500: #06b6d4;

    --my-card-shadow:    0 6px 18px -10px rgba(30, 64, 175, .35), 0 2px 6px rgba(15, 23, 42, .04);
    --my-card-shadow-hi: 0 18px 38px -14px rgba(30, 64, 175, .45), 0 6px 14px rgba(15, 23, 42, .06);
    --my-ring:           0 0 0 1px rgba(37, 99, 235, .14);

    --my-ease: cubic-bezier(.22, 1, .36, 1);
}

#myPage .my-page-shell {
    width: min(100%, 560px);
    margin: 0 auto;
    display: grid;
    gap: 22px;
    padding-bottom: 24px;
}

/* ------------------------------------------------------------
   2. Hero 卡片
   ------------------------------------------------------------ */
#myPage .my-hero-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 28px 24px 24px;
    border-radius: 24px;
    background:
        linear-gradient(155deg, #ffffff 0%, #f5faff 55%, #e6f1ff 100%);
    border: 1px solid rgba(37, 99, 235, .12);
    box-shadow:
        0 22px 50px -28px rgba(30, 64, 175, .35),
        0 4px 14px -8px rgba(15, 23, 42, .06);
    animation: myFadeUp .6s var(--my-ease) both;
}

/* 旋转光晕（右上） */
#myPage .my-hero-card::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(37, 99, 235, .22),
        rgba(96, 165, 250, .08),
        rgba(14, 165, 233, .18),
        rgba(37, 99, 235, .22));
    filter: blur(40px);
    z-index: -1;
    animation: myHaloSpin 28s linear infinite;
    opacity: .9;
}

/* 左下淡淡的光斑 */
#myPage .my-hero-card::after {
    content: "";
    position: absolute;
    inset: auto auto -30% -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(125, 211, 252, .35), transparent 70%);
    filter: blur(20px);
    z-index: -1;
    animation: myHaloFloat 9s ease-in-out infinite alternate;
}

/* 顶部连续上线天数 */
#myPage .my-hero-status {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #047857;
    background: rgba(236, 253, 245, .9);
    border: 1px solid rgba(16, 185, 129, .25);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}
#myPage .my-hero-status > span { line-height: 1; }
#myPage .my-hero-status-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .55);
    animation: myPulseDot 2s ease-out infinite;
}
/* 仅 1 天：灰色样式，无脉冲 */
#myPage .my-hero-status--muted {
    color: #64748b;
    background: rgba(241, 245, 249, .95);
    border-color: rgba(148, 163, 184, .35);
}
#myPage .my-hero-status--muted .my-hero-status-dot {
    background: #94a3b8;
    box-shadow: none;
    animation: none;
}

/* Hero 主体：头像居中，下方文案左对齐（与手机一致） */
#myPage .my-hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
#myPage .my-hero-avatar {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    /* 覆盖 avatar_frames.css 的固定 120x120 容器，让头像框与新尺寸对齐 */
    width: 92px !important;
    height: 92px !important;
}
#myPage .my-hero-avatar .avatar-frame-wrapper {
    width: 100% !important;
    height: 100% !important;
}
#myPage .my-hero-avatar .profile-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .12),
        0 10px 24px -10px rgba(37, 99, 235, .45);
    transition: transform .4s var(--my-ease), box-shadow .4s var(--my-ease);
    animation: myAvatarGlow 3.4s ease-in-out infinite;
}
#myPage .my-hero-avatar:hover .profile-avatar {
    transform: scale(1.04) rotate(-1deg);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .22),
        0 16px 30px -10px rgba(37, 99, 235, .55);
}

#myPage .my-hero-copy {
    min-width: 0;
    width: 100%;
    text-align: left;
}
#myPage .my-hero-kicker {
    position: relative;
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 30%, #93c5fd 50%, #3b82f6 70%, #1e40af 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: myShimmer 3.6s linear infinite;
}
#myPage .my-hero-copy h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
}
#myPage .my-role-pill {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--my-blue-700);
    background: var(--my-blue-50);
    border: 1px solid var(--my-blue-100);
    border-radius: 999px;
}
#myPage .my-hero-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
}

/* ------------------------------------------------------------
   3. Quick Stats
   ------------------------------------------------------------ */
#myPage .my-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px dashed rgba(37, 99, 235, .14);
}
#myPage .my-stat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, .1);
    border-radius: 14px;
    box-shadow: var(--my-card-shadow);
    transition:
        transform .3s var(--my-ease),
        box-shadow .3s var(--my-ease),
        border-color .3s var(--my-ease);
    animation: myFadeUp .55s var(--my-ease) both;
}
#myPage .my-stat-item:nth-child(1) { animation-delay: .08s; }
#myPage .my-stat-item:nth-child(2) { animation-delay: .16s; }
#myPage .my-stat-item:nth-child(3) { animation-delay: .24s; }
#myPage .my-stat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .28);
    box-shadow: var(--my-card-shadow-hi);
}
#myPage .my-stat-item:hover .my-stat-icon {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: none;
    transform: none;
}
#myPage .my-stat-item:hover .my-stat-icon::after {
    background-color: #fff;
}

/* 与常用功能 .menu-ico 一致：默认蓝线 + 浅灰底，悬停蓝底白线 */
#myPage .my-stat-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    box-shadow: none;
    display: inline-flex;
    transition:
        background .3s var(--my-ease),
        box-shadow .3s var(--my-ease);
    position: relative;
}
#myPage .my-stat-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #2563eb;
    transition: background-color .3s var(--my-ease);
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 20px 20px;
            mask-size: 20px 20px;
}

#myPage .my-stat-text { min-width: 0; }
#myPage .my-stat-label {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: #64748b;
}
#myPage .my-stat-value {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#myPage .my-stat-value .badge {
    margin: 0;
    padding: 2px 8px;
    font-size: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* ------------------------------------------------------------
   4. 区块标题
   ------------------------------------------------------------ */
#myPage .my-section-block {
    display: grid;
    gap: 10px;
    animation: myFadeUp .55s var(--my-ease) both;
}
#myPage .my-section-block:nth-of-type(2) { animation-delay: .1s; }
#myPage .my-section-block:nth-of-type(3) { animation-delay: .18s; }
#myPage .my-section-block:nth-of-type(4) { animation-delay: .26s; }

#myPage .my-section-title {
    padding: 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}
#myPage .my-section-title::before {
    content: "";
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--my-blue-500), var(--my-blue-700));
}

/* ------------------------------------------------------------
   5. 常用功能菜单
   ------------------------------------------------------------ */
#myPage .my-menu-list {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, .1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--my-card-shadow);
}

#myPage .my-menu-list .menu-item {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    width: 100%;
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
    border-bottom: 1px solid #eef2f7;
    border-left: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: background .3s var(--my-ease);
    animation: myFadeUp .5s var(--my-ease) both;
}
#myPage .my-menu-list .menu-item:nth-child(1) { animation-delay: .05s; }
#myPage .my-menu-list .menu-item:nth-child(2) { animation-delay: .12s; }
#myPage .my-menu-list .menu-item:nth-child(3) { animation-delay: .19s; }
#myPage .my-menu-list .menu-item:nth-child(4) { animation-delay: .26s; }
#myPage .my-menu-list .menu-item:nth-child(5) { animation-delay: .33s; }
#myPage .my-menu-list .menu-item:last-child { border-bottom: 0; }

#myPage .my-menu-list .menu-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--my-blue-500), var(--my-blue-700));
    opacity: 0;
    transform: none;
    transition: opacity .3s var(--my-ease);
    /* 阻止旧 .menu-item:active::before 的 ripple 动画干扰本指示条 */
    animation: none !important;
    border-radius: 2px;
}
#myPage .my-menu-list .menu-item:active::before {
    opacity: 1;
    transform: none;
    animation: none !important;
}
#myPage .my-menu-list .menu-item:hover {
    background: linear-gradient(90deg, rgba(239, 246, 255, .9), rgba(255, 255, 255, 0) 70%);
}
#myPage .my-menu-list .menu-item:hover::before {
    opacity: 1;
    transform: none;
}
#myPage .my-menu-list .menu-item:hover,
#myPage .my-menu-list .menu-item:active {
    transform: none !important;
}

/* 左侧图标：默认蓝色线条，悬停时白线条 */
#myPage .my-menu-list .menu-ico {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    background: #f1f5f9;
    box-shadow: none;
    transition:
        background .3s var(--my-ease),
        box-shadow .3s var(--my-ease);
}
#myPage .my-menu-list .menu-ico::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #2563eb;
    transition: background-color .3s var(--my-ease);
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 22px 22px;
            mask-size: 22px 22px;
}
#myPage .my-menu-list .menu-item:hover .menu-ico {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: none;
    transform: none !important;
}
#myPage .my-menu-list .menu-item:hover .menu-ico::after {
    background-color: #fff;
}

#myPage .my-menu-list .menu-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#myPage .my-menu-list .menu-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
    text-align: left;
    flex: 0 0 auto;
}
#myPage .my-menu-list .menu-sub {
    font-size: 11px;
    font-weight: 400;
    color: #b0bcc9;
    line-height: 1.3;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    flex: 0 0 auto;
}

/* 兜底覆盖旧版全局 .menu-item span:first-child/last-child，避免常用功能排版错位 */
#myPage .my-menu-list .menu-item span:first-child {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

#myPage .my-menu-list .menu-item span:last-child {
    color: #b0bcc9 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    text-align: left !important;
    transform: none !important;
}

/* 右侧箭头 */
#myPage .my-menu-list .menu-arrow {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: #cbd5e1;
    transition: transform .3s var(--my-ease), color .3s var(--my-ease);
}
#myPage .my-menu-list .menu-arrow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
            mask-size: 18px 18px;
}
#myPage .my-menu-list .menu-item:hover .menu-arrow {
    color: var(--my-blue-600);
    transform: none !important;
}

/* 覆盖 style.css：禁止副标题 hover 平移（会被误认为放大） */
#myPage .my-menu-list .menu-item span:last-child,
#myPage .my-menu-list .menu-item:hover span:last-child {
    transform: none !important;
}

/* ------------------------------------------------------------
   6. 管理入口（与常用功能列表同风格，低对比、不抢眼）
   ------------------------------------------------------------ */
#myPage .my-card-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, .1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--my-card-shadow);
}

#myPage .my-card {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 1px;
    align-items: center;
    padding: 13px 16px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: background .25s var(--my-ease);
    min-height: 0;
}
#myPage .my-card-grid .my-card:last-child {
    border-bottom: 0;
}
#myPage .my-card::before,
#myPage .my-card::after {
    display: none;
}
#myPage .my-card:hover {
    background: #f8fafc;
    transform: none;
    box-shadow: none;
    filter: none;
}
#myPage .my-card:active {
    transform: scale(.995);
    background: #f1f5f9;
}

/* 取消旧高亮类带来的强调色 */
#myPage .my-card.menu-item-highlight,
#myPage .my-card.menu-item-highlight .menu-title,
#myPage .my-card.menu-item-highlight span.menu-title {
    color: #0f172a !important;
    font-weight: 600;
}

/* 管理后台 / 切换 UI：图标始终蓝底 + 白图标 */
#myPage .my-card .my-card-icon {
    grid-row: 1 / 3;
    grid-column: 1;
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    display: inline-flex;
    flex-shrink: 0;
    box-shadow: 0 6px 14px -8px rgba(37, 99, 235, .4);
}
#myPage .my-card .my-card-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #fff;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 18px 18px;
            mask-size: 18px 18px;
}

#myPage .my-card .menu-title,
#myPage .my-card span.menu-title {
    grid-column: 2;
    grid-row: 1;
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    transform: none !important;
    text-align: left;
    justify-self: start;
    align-self: end;
    flex: 0 0 auto;
}
#myPage .my-card .menu-sub,
#myPage .my-card span.menu-sub {
    grid-column: 2;
    grid-row: 2;
    color: #b0bcc9;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    transform: none !important;
    transition: none;
    text-align: left;
    justify-self: start;
    align-self: start;
    flex: 0 0 auto;
}
#myPage .my-card:hover .menu-sub,
#myPage .my-card:hover span.menu-sub { transform: none !important; }

/* 覆盖旧版全局 .menu-item span:first-child / span:last-child 的居中与弹性规则 */
#myPage .my-menu-list .menu-item span:first-child,
#myPage .my-card span:first-child {
    text-align: left !important;
    flex: 0 0 auto !important;
}

#myPage .my-menu-list .menu-item span:last-child,
#myPage .my-card span:last-child {
    text-align: left !important;
}

/* ------------------------------------------------------------
   7. 退出登录按钮
   ------------------------------------------------------------ */
#myPage .my-logout-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
    color: #dc2626;
    font-size: 15px;
    font-weight: 700;
    border: 1.5px solid rgba(220, 38, 38, .35);
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition:
        background .3s var(--my-ease),
        color .3s var(--my-ease),
        border-color .3s var(--my-ease),
        transform .15s var(--my-ease),
        box-shadow .3s var(--my-ease);
    box-shadow: 0 4px 12px -8px rgba(220, 38, 38, .25);
    /* 覆盖旧 .menu-item 的 flex 与边框 */
    border-bottom: 1.5px solid rgba(220, 38, 38, .35);
}
#myPage .my-logout-btn:hover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, .55);
    box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .5);
    transform: translateY(-1px);
}
#myPage .my-logout-btn:active {
    transform: translateY(0) scale(.99);
}
#myPage .my-logout-btn .menu-ico {
    position: relative;
    width: 22px;
    height: 22px;
    background: transparent !important;
    box-shadow: none !important;
    color: currentColor;
    border-radius: 0;
}
#myPage .my-logout-btn .menu-ico::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: currentColor;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 20px 20px;
            mask-size: 20px 20px;
}
#myPage .my-logout-btn .menu-title,
#myPage .my-logout-btn span.menu-title {
    color: currentColor !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.2;
    transform: none !important;
    transition: none;
}
#myPage .my-logout-btn:hover .menu-title,
#myPage .my-logout-btn:hover span.menu-title {
    color: currentColor !important;
    transform: none !important;
}

/* ------------------------------------------------------------
   8. 图标系统（CSS mask + inline SVG dataURL，纯 CSS，无外部依赖）
   ------------------------------------------------------------ */
#myPage [data-ico="user-check"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><polyline points='16 11 18 13 22 9'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/><circle cx='9' cy='7' r='4'/><polyline points='16 11 18 13 22 9'/></svg>");
}
#myPage [data-ico="bell"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/><path d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/><path d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/></svg>");
}
#myPage [data-ico="frame"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='3'/><circle cx='12' cy='12' r='4'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='3'/><circle cx='12' cy='12' r='4'/></svg>");
}
#myPage [data-ico="profile"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>");
}
#myPage [data-ico="image"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2'/><circle cx='9' cy='9' r='2'/><path d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/></svg>");
}
#myPage [data-ico="message"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'/></svg>");
}
#myPage [data-ico="calendar"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
}
#myPage [data-ico="feedback"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/></svg>");
}
#myPage [data-ico="shield"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/></svg>");
}
#myPage [data-ico="palette"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='13.5' cy='6.5' r='1.5'/><circle cx='17.5' cy='10.5' r='1.5'/><circle cx='8.5' cy='7.5' r='1.5'/><circle cx='6.5' cy='12.5' r='1.5'/><path d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125 0-.926.746-1.668 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='13.5' cy='6.5' r='1.5'/><circle cx='17.5' cy='10.5' r='1.5'/><circle cx='8.5' cy='7.5' r='1.5'/><circle cx='6.5' cy='12.5' r='1.5'/><path d='M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125 0-.926.746-1.668 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z'/></svg>");
}
#myPage [data-ico="logout"]::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><polyline points='16 17 21 12 16 7'/><line x1='21' y1='12' x2='9' y2='12'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/><polyline points='16 17 21 12 16 7'/><line x1='21' y1='12' x2='9' y2='12'/></svg>");
}

/* 菜单项右侧箭头 chevron-right */
#myPage .menu-arrow::after {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 18 15 12 9 6'/></svg>");
}

/* ------------------------------------------------------------
   9. 关键帧动画
   ------------------------------------------------------------ */
@keyframes myFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes myHaloSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes myHaloFloat {
    from { transform: translate(0, 0) scale(1); opacity: .7; }
    to   { transform: translate(20px, -10px) scale(1.1); opacity: 1; }
}
@keyframes myPulseDot {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@keyframes myAvatarGlow {
    0%, 100% { box-shadow: 0 0 0 3px rgba(37, 99, 235, .12), 0 10px 24px -10px rgba(37, 99, 235, .45); }
    50%      { box-shadow: 0 0 0 5px rgba(37, 99, 235, .22), 0 16px 30px -10px rgba(37, 99, 235, .6); }
}
@keyframes myShimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ------------------------------------------------------------
   10. 响应式
   ------------------------------------------------------------ */
@media (max-width: 768px) {
    #myPage .my-page-shell { gap: 18px; }
    #myPage .my-hero-avatar {
        align-self: flex-start;
    }
    #myPage .my-hero-card { padding: 22px 18px 18px; border-radius: 20px; }
    #myPage .my-hero-card::before { width: 280px; height: 280px; }
    #myPage .my-hero-avatar { width: 78px !important; height: 78px !important; }
    #myPage .my-hero-copy h2 { font-size: 21px; }
    #myPage .my-hero-desc { font-size: 13px; }
    #myPage .my-quick-stats { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
    #myPage .my-stat-item { padding: 10px 12px; }
    #myPage .my-stat-icon { width: 34px; height: 34px; }
    #myPage .my-stat-icon::after { -webkit-mask-size: 18px 18px; mask-size: 18px 18px; }
    #myPage .my-menu-list .menu-item { padding: 13px 14px; gap: 12px; }
    #myPage .my-menu-list .menu-ico { width: 36px; height: 36px; border-radius: 10px; }
    #myPage .my-menu-list .menu-ico::after { -webkit-mask-size: 20px 20px; mask-size: 20px 20px; }
    #myPage .my-menu-list .menu-title { font-size: 14.5px; }
    #myPage .my-menu-list .menu-item span.menu-sub,
    #myPage .my-card span.menu-sub {
        font-size: 11px;
        color: #b0bcc9;
    }
    #myPage .my-card { padding: 13px 14px; }
}

@media (max-width: 380px) {
    #myPage .my-hero-main { gap: 14px; }
    #myPage .my-hero-status { top: 10px; right: 10px; font-size: 11px; }
    #myPage .my-hero-copy h2 { font-size: 19px; }
}

/* ------------------------------------------------------------
   11. 深色模式
   ------------------------------------------------------------ */
body.theme-dark #myPage {
    --my-card-shadow: 0 6px 18px -10px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .22);
    --my-card-shadow-hi: 0 18px 38px -14px rgba(0, 0, 0, .55), 0 6px 14px rgba(0, 0, 0, .28);
}

body.theme-dark #myPage .my-hero-card {
    background: linear-gradient(155deg, #0f172a 0%, #111827 52%, #1e293b 100%);
    border-color: rgba(148, 163, 184, .18);
    box-shadow: 0 22px 50px -28px rgba(0, 0, 0, .5), 0 4px 14px -8px rgba(0, 0, 0, .28);
}

body.theme-dark #myPage .my-hero-card::before {
    background: conic-gradient(from 0deg,
        rgba(59, 130, 246, .16),
        rgba(30, 64, 175, .06),
        rgba(14, 165, 233, .1),
        rgba(59, 130, 246, .16));
    opacity: .55;
}

body.theme-dark #myPage .my-hero-card::after {
    background: radial-gradient(closest-side, rgba(59, 130, 246, .18), transparent 70%);
}

body.theme-dark #myPage .my-hero-status {
    color: #6ee7b7;
    background: rgba(6, 78, 59, .42);
    border-color: rgba(52, 211, 153, .28);
}

body.theme-dark #myPage .my-hero-status--muted {
    color: var(--text-secondary);
    background: rgba(30, 41, 59, .92);
    border-color: rgba(148, 163, 184, .22);
}

body.theme-dark #myPage .my-hero-status--muted .my-hero-status-dot {
    background: #64748b;
}

body.theme-dark #myPage .my-hero-copy h2 {
    color: var(--text-primary);
}

body.theme-dark #myPage .my-hero-kicker {
    background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 35%, #bfdbfe 50%, #60a5fa 65%, #93c5fd 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

body.theme-dark #myPage .my-hero-desc {
    color: var(--text-secondary);
}

body.theme-dark #myPage .my-role-pill {
    color: #93c5fd;
    background: rgba(37, 99, 235, .14);
    border-color: rgba(59, 130, 246, .28);
}

body.theme-dark #myPage .my-hero-avatar .profile-avatar {
    border-color: #1e293b;
}

body.theme-dark #myPage .my-quick-stats {
    border-top-color: rgba(148, 163, 184, .14);
}

body.theme-dark #myPage .my-stat-item,
body.theme-dark #myPage .my-menu-list,
body.theme-dark #myPage .my-card-grid {
    background: var(--bg-primary);
    border-color: rgba(148, 163, 184, .18);
}

body.theme-dark #myPage .my-stat-label,
body.theme-dark #myPage .my-section-title {
    color: var(--text-secondary);
}

body.theme-dark #myPage .my-stat-value {
    color: var(--text-primary);
}

body.theme-dark #myPage .my-menu-list .menu-item,
body.theme-dark #myPage .my-card {
    border-bottom-color: rgba(148, 163, 184, .12);
}

body.theme-dark #myPage .my-menu-list .menu-item:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, .14), transparent 70%);
}

body.theme-dark #myPage .my-card:hover {
    background: var(--bg-tertiary);
}

body.theme-dark #myPage .my-card:active {
    background: #1e293b;
}

body.theme-dark #myPage .my-menu-list .menu-title,
body.theme-dark #myPage .my-card .menu-title,
body.theme-dark #myPage .my-card span.menu-title,
body.theme-dark #myPage .my-card.menu-item-highlight .menu-title,
body.theme-dark #myPage .my-card.menu-item-highlight span.menu-title {
    color: var(--text-primary) !important;
}

body.theme-dark #myPage .my-menu-list .menu-sub,
body.theme-dark #myPage .my-card .menu-sub,
body.theme-dark #myPage .my-card span.menu-sub {
    color: var(--text-light);
}

body.theme-dark #myPage .my-logout-btn {
    background: var(--bg-primary);
    color: #f87171;
    border-color: rgba(248, 113, 113, .38);
    box-shadow: 0 4px 12px -8px rgba(0, 0, 0, .35);
}

body.theme-dark #myPage .my-logout-btn:hover {
    background: rgba(127, 29, 29, .32);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, .52);
}

/* ------------------------------------------------------------
   12. 可访问性：减少动画
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    #myPage *,
    #myPage *::before,
    #myPage *::after {
        animation: none !important;
        transition: none !important;
    }
}
