:root {
    --bg-image-url: url('https://pan.chaer.xyz/f/dKHV/Background_School_SEKAI_%2528Night%2529.webp');
    --bg-fallback: #eaeaf0;
    --card: rgba(255, 255, 255, 0.65);
    --accent: #2ab1a8;
    --accent-light: rgba(42, 177, 168, 0.12);
    --ios-ease: cubic-bezier(0.25, 1, 0.22, 1);
    --text-main: #1d1d1f;
    --text-sub: #515154;
    --text-muted: #8E8E93;
    --secondary: #2E3440;
    --border-light: rgba(255, 255, 255, 0.6);
    --border-subtle: rgba(0, 0, 0, 0.06);
    --radius-card: 28px;
    --radius-pill: 999px;
    --shadow-elevated: 0 24px 64px rgba(0,0,0,0.15), inset 0 1px 1px rgba(255,255,255,0.8);
    --font-stack: -apple-system, "SF Pro Display", "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    -webkit-tap-highlight-color:transparent;
}

html, body {
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    background: transparent !important;
    overflow-x: hidden;
}

body{
    font-family: var(--font-stack);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 16px;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-fallback);
    background-image: var(--bg-image-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.85);
    z-index: -2;
    pointer-events: none;
}

.app-container{
    width: 100%;
    max-width: 380px;
    background: var(--card);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border-radius: 28px;
    border: 1px solid var(--border-light);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), inset 0 1px 1px rgba(255,255,255,0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
    z-index: 1;
}

.content-wrapper{
    padding: 28px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity, filter;
}

.result-display { display: flex; flex-direction: column; align-items: center; width: 100%; }
.portrait-container { position: relative; width: 100%; height: 190px; display: flex; justify-content: center; align-items: flex-end; margin-bottom: 18px; margin-top: 4px; }
.char-portrait { max-height: 100%; max-width: 90%; z-index: 2; object-fit: contain; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.16)); }
.char-glow { position: absolute; width: 150px; height: 150px; background: var(--accent); filter: blur(35px); opacity: 0.35; border-radius: 50%; bottom: -5px; z-index: 1; }
.unit-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.5); padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.4); margin-bottom: 12px; }
.unit-logo { width: 15px; height: 15px; object-fit: contain; }
.unit-name { font-size: 11px; font-weight: 800; color: var(--accent-text); letter-spacing: 0.6px; }
.res-name{ font-size: 28px; font-weight: 900; color: var(--accent-text); margin-bottom: 12px; letter-spacing: -0.5px; }
.result-desc { font-size: 13.5px; line-height: 1.6; text-align: center; color: var(--text-main); opacity: 0.85; margin-bottom: 24px; padding: 0 4px; }
.match-list { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.match-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 14px; background: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.3); }
.match-item.top-match { background: var(--accent-light); border-color: rgba(124,58,237,0.25); }
.match-name { font-weight: 800; font-size: 13px; }
.match-percent { font-weight: 900; color: var(--accent-text); font-size: 15px; }

.header-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; width: 100%; }
.tag-time { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; color: var(--accent-text); background: var(--accent-light); padding: 4px 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); white-space: nowrap; }
.progress-track { flex: 1; height: 6px; background: rgba(0,0,0,0.05); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0%; }
.question-box { width: 100%; margin-bottom: 24px; }
.question-box h2{ font-size: 17px; font-weight: 800; line-height: 1.5; margin-bottom: 32px; text-align: center; }

.slider-container { width: 100%; padding: 0 8px; margin: 20px 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.slider-track-wrap { position: relative; width: 100%; padding-top: 44px; margin-bottom: 4px; touch-action: none; }
.slider-value-bubble {
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%) translateY(0) scale(1);
    background: var(--accent); color: var(--accent-contrast);
    padding: 6px 14px; border-radius: 14px;
    font-size: 13px; font-weight: 700; text-align: center; min-width: 90px;
    box-shadow: 0 4px 12px rgba(42, 177, 168, 0.25);
    pointer-events: none; z-index: 3; white-space: nowrap;
}

.ios-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; border-radius: 4px; outline: none;
    margin: 12px 0; cursor: pointer; display: block;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--slider-pct, 50%), rgba(0, 0, 0, 0.06) var(--slider-pct, 50%), rgba(0, 0, 0, 0.06) 100%);
}
.ios-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; border-radius: 50%; opacity: 0.001; cursor: pointer; }
.ios-slider::-moz-range-thumb { width: 44px; height: 44px; border-radius: 50%; opacity: 0.001; border: none; cursor: pointer; }

.slider-thumb {
    position: absolute; top: calc(44px + 12px + (8px - 24px) / 2); left: var(--thumb-pct, 50%);
    width: 24px; height: 24px; border-radius: 50%;
    background: #ffffff; border: 0.5px solid rgba(0,0,0,0.04);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15); pointer-events: none; z-index: 2;
    transform: translateX(-50%) scale(var(--thumb-scale, 1));
}

.slider-labels { display: flex; justify-content: space-between; width: 100%; padding: 0; margin-top: 6px; }
.slider-label-btn { font-size: 11px; font-weight: 700; color: var(--text-sub); background: none; border: none; flex: 1; text-align: center; }
.slider-label-btn.active { color: var(--accent-text); font-weight: 800; }

.nav-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; width: 100%; }
.btn-back { background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.45); color: var(--text-main); font-weight: 700; padding: 8px 16px; border-radius: 12px; cursor: pointer; font-size: 12px; }
.btn-back:active { transform: scale(0.96); background: rgba(255,255,255,0.7); }
.page-indicator { font-size: 11px; font-weight: 800; color: var(--accent-text); background: rgba(255,255,255,0.45); padding: 5px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.2); }

.btn-primary, .btn-secondary { padding: 15px; border-radius: 16px; font-size: 14px; font-weight: 700; cursor: pointer; width: 100%; transition: all .25s var(--ios-ease); border: none; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: rgba(255,255,255,0.45); color: var(--accent-text); border: 1px solid rgba(255,255,255,0.5); margin-top: 10px; }

.result-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-bottom: 4px; }
.action-row-split { display: flex; gap: 12px; width: 100%; }
.action-row-split button { flex: 1; height: 48px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 16px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; }
.btn-share { background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.45); color: var(--accent-text); }
.btn-ghost { padding: 11px; border-radius: 14px; font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.3); color: var(--text-sub); width: 100%; }

.stats-modal {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(46, 52, 64, 0.48); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
    z-index: 999; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; padding: 20px; box-sizing: border-box;
}
.stats-modal.show { pointer-events: auto; }

.stats-card {
    width: clamp(300px, 88vw, 380px);
    max-width: 380px;
    height: clamp(420px, 78vh, 85vh);
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-elevated);
    box-sizing: border-box;
}
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}
.stats-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.3px;
}
.btn-close-stats {
    background: rgba(120,120,136,0.12);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    touch-action: manipulation;
    flex-shrink: 0;
    margin-left: auto;
}
.btn-close-stats:hover { background: rgba(120,120,136,0.22); }

.stats-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 8px;
    margin-bottom: 12px;
    padding: 4px 4px 10px;
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 2;
    touch-action: pan-y;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    min-height: 36px;
}
.stats-tabs:active { cursor: grabbing; }
.stats-tab {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: rgba(120,120,136,0.08);
    color: var(--text-main);
    transition: border-color 0.22s var(--ios-ease), background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.stats-tab:hover {
    background: rgba(120,120,136,0.15);
}
.stats-tab:active {
    transform: scale(0.96);
}
.stats-tab.active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(42, 177, 168, 0.25);
}

.stats-scroll-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.stats-scroll-body::-webkit-scrollbar { width: 4px; }
.stats-scroll-body::-webkit-scrollbar-track { background: transparent; }
.stats-scroll-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.08); border-radius: 2px; }
.stats-leaderboard { display: flex; flex-direction: column; gap: 8px; padding: 0 4px 6px; width: 100%; box-sizing: border-box; }

.lb-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 10px;
    border-radius: 14px;
    background: rgba(120,120,136,0.06);
    border: 1px solid rgba(120,120,136,0.12);
    transition: background 0.15s ease;
    min-height: 44px;
    touch-action: manipulation;
    user-select: none;
}
.lb-row:hover { background: rgba(120,120,136,0.10); }
.lb-row:active { transform: scale(0.985); }
.lb-row.top1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 192, 0, 0.12));
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.15);
}
.lb-row.top2 {
    background: linear-gradient(135deg, rgba(160, 170, 190, 0.22), rgba(140, 150, 170, 0.14));
    border-color: rgba(160, 170, 190, 0.45);
    box-shadow: 0 1px 4px rgba(160, 170, 190, 0.12);
}
.lb-row.top3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.14), rgba(178, 110, 44, 0.1));
    border-color: rgba(205, 127, 50, 0.28);
}

.lb-rank {
    width: 18px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
    line-height: 1.2;
}
.lb-row.top1 .lb-rank { color: #b8860b; font-size: 14px; }
.lb-row.top2 .lb-rank { color: #6b7a8d; }
.lb-row.top3 .lb-rank { color: #996515; }

.lb-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.lb-unit-tag {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.lb-unit-tag img {
    width: 30px;
    height: 12px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.08));
}

.lb-bar-track {
    width: 120px;
    height: 9px;
    background: rgba(0,0,0,0.05);
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: auto;
}
.lb-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #2daa9f);
    border-radius: 7px;
}

.stats-footer {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 16px 0 4px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 8px;
    flex-shrink: 0;
    line-height: 1.6;
}

/* ── 公告弹窗内容（与 friends wpf-convention-content 统一） ── */
.modal-notice-content {
    text-align: left;
    margin: 0 0 16px;
}
.modal-notice-content p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0 0 16px;
    text-align: left;
}
.modal-notice-content p:last-child {
    margin-bottom: 0;
}
.modal-notice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    display: flex;
    padding: 13px 24px;
    border: none;
    border-radius: 100px;
    background: #259C95;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 156, 149, 0.3);
    letter-spacing: 0.2px;
    font-family: inherit;
    transition: box-shadow 0.2s ease;
}
.modal-notice-btn:hover {
    box-shadow: 0 8px 28px rgba(37, 156, 149, 0.4);
}
.modal-notice-btn:active {
    transform: scale(0.97);
}

/* ── 弹窗操作按钮（与 friends wpf-modal-actions 统一） ── */
.modal-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 12px;
}
.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 13px 20px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s ease;
    letter-spacing: 0.2px;
    min-width: 0;
}
.modal-btn.cancel {
    background: rgba(120,120,136,0.12);
    color: var(--text-main);
    font-weight: 500;
}
.modal-btn.cancel:hover {
    opacity: 0.75;
}
.modal-btn.confirm {
    background: #259C95;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 156, 149, 0.25);
}
.modal-btn.confirm:hover {
    background: #259C95;
}

@media (max-width: 360px) {
    .stats-card { padding: 16px 12px 18px; max-width: 100%; border-radius: 22px; width: clamp(260px, 94vw, 360px); height: clamp(360px, 72vh, 82vh); }
    .stats-header { margin-bottom: 12px; }
    .stats-title { font-size: 16px; }
    .btn-close-stats { width: 26px; height: 26px; font-size: 13px; }
    .stats-tabs { gap: 6px; margin-bottom: 10px; padding: 3px 3px 8px; }
    .stats-tab { padding: 6px 11px; font-size: 11px; }
    .lb-row { padding: 8px 6px; gap: 3px; }
    .lb-rank { width: 16px; font-size: 11px; }
    .lb-name { font-size: 12px; }
    .lb-unit-tag img { width: 24px; height: 9px; }
    .lb-bar-track { width: 72px; height: 7px; }
    .stats-footer { font-size: 12px; }
}

@media (min-width: 480px) {
    .stats-card { padding: 22px 20px 18px; max-width: 430px; border-radius: var(--radius-card); width: clamp(340px, 80vw, 430px); height: clamp(460px, 80vh, 88vh); }
    .stats-header { margin-bottom: 16px; }
    .stats-title { font-size: 19px; }
    .stats-tabs { gap: 10px; margin-bottom: 14px; padding: 4px 4px 12px; }
    .stats-tab { padding: 8px 16px; font-size: 13px; }
    .lb-row { padding: 12px 12px; gap: 6px; }
    .lb-rank { width: 22px; font-size: 13px; }
    .lb-name { font-size: 14px; }
    .lb-unit-tag img { width: 34px; height: 13px; }
    .lb-bar-track { width: 130px; height: 10px; }
}

@media (min-width: 768px) {
    .stats-card { padding: 26px 24px 18px; max-width: 500px; border-radius: 32px; width: clamp(400px, 60vw, 500px); height: clamp(500px, 75vh, 90vh); }
    .stats-title { font-size: 20px; }
    .lb-name { font-size: 15px; }
    .lb-unit-tag img { width: 38px; height: 14px; }
    .lb-bar-track { width: 160px; }
}
.copyright-wrapper { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 16px 14px; font-size: 10.5px; color: var(--text-sub); text-align: center; line-height: 1.5; }
.copyright-wrapper .links-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.copyright-wrapper .links-row a { color: var(--accent-text); text-decoration: none; font-weight: 700; font-size: 11px; white-space: nowrap; padding: 2px 4px; border-radius: 6px; transition: background 0.2s ease; }
.copyright-wrapper .links-row a:hover { background: rgba(0,0,0,0.04); }
.copyright-wrapper .info-row { font-size: 10px; opacity: 0.7; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.main-site-link { color: var(--accent-text); text-decoration: none; font-weight: 700; }
.mode-badge { font-size: 9px; font-weight: 800; color: var(--accent-contrast); background: var(--accent); padding: 1px 5px; border-radius: 4px; margin-left: 3px; display: inline-block; }

@keyframes titleRainbow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
#homeTitleAnimated { background: linear-gradient(to right, #884499, #4455DD, #88DD44, #EE1166, #FF9900, #884499); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: titleRainbow 12s linear infinite; }

/* ========================================================
   更多来自碴儿.NET 折叠菜单（与 app-container 视觉风格一致，默认展开）
   ======================================================== */
.more-menu-card {
    width: 100%;
    max-width: 380px;
    margin: 0;
    padding: 0;
    background: var(--card);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), inset 0 1px 1px rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    animation: moreMenuIn 0.55s var(--ios-ease) both;
    animation-delay: 0.15s;
}

@keyframes moreMenuIn {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.more-menu-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-main);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease;
}
.more-menu-toggle:hover { background: rgba(0,0,0,0.025); }
.more-menu-toggle:active { background: rgba(0,0,0,0.05); }
.more-menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.more-menu-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.more-menu-leading-icon {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.32s var(--ios-ease), color 0.2s ease;
}
.more-menu-toggle:hover .more-menu-leading-icon { transform: rotate(45deg) scale(1.06); }

.more-menu-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.3px;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.more-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.more-menu-card.more-menu-collapsed .more-menu-badge { display: none; }

.more-menu-chevron {
    color: var(--text-sub);
    flex-shrink: 0;
    transition: transform 0.32s var(--ios-ease), color 0.2s ease;
}
.more-menu-toggle:hover .more-menu-chevron { color: var(--accent-text); }
.more-menu-card:not(.more-menu-collapsed) .more-menu-chevron {
    transform: rotate(180deg);
    color: var(--accent-text);
}

.more-menu-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 18px 18px;
    overflow: hidden;
}
.more-menu-body[hidden] { display: none; }

.more-menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0 -4px 2px;
}

.more-menu-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.more-menu-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 6px;
    border-radius: 14px;
    transition: background 0.2s ease;
}
.more-menu-item:hover { background: rgba(0,0,0,0.018); }

.more-menu-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.32));
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: transform 0.2s var(--ios-ease), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
    touch-action: manipulation;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.more-menu-btn-icon {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.32s var(--ios-ease);
}

.more-menu-btn:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5));
    box-shadow: 0 4px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.7);
    color: var(--accent-text);
    border-color: rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.35);
}
.more-menu-btn:hover .more-menu-btn-icon { transform: rotate(-12deg); }

.more-menu-btn:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.78);
}

.more-menu-desc {
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-sub);
    opacity: 0.88;
    text-align: center;
    margin: 0;
    padding: 0 2px 2px;
    letter-spacing: 0.1px;
}

.more-menu-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    line-height: 1.55;
    color: var(--text-sub);
}
.more-menu-footer span {
    font-size: 10.5px;
    opacity: 0.78;
    font-weight: 500;
    letter-spacing: 0.1px;
}
.more-menu-footer span:last-child {
    font-size: 10px;
    opacity: 0.62;
}

/* 主页链接行（回到主站 / 反馈扩列） */
.home-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 0 4px;
}
.home-links a {
    color: var(--accent-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.home-links a:hover {
    background: rgba(0,0,0,0.04);
}

/* ====== 扩列广场引导入口 ====== */
.persona-guide-box {
    width: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.14), rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.04));
    border: 1px solid rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.22);
    border-radius: 18px;
    padding: 14px 16px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.persona-guide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}
.persona-guide-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.persona-guide-text strong {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--accent-text);
    letter-spacing: -0.2px;
}
.persona-guide-text span {
    font-size: 11.5px;
    color: var(--text-sub);
    opacity: 0.85;
    line-height: 1.4;
}
.persona-guide-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(var(--accent-r), var(--accent-g), var(--accent-b), 0.25);
    transition: transform 0.2s var(--ios-ease), box-shadow 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.persona-guide-btn:active {
    transform: scale(0.96);
}
@media (max-width: 360px) {
    .persona-guide-inner { flex-direction: column; align-items: flex-start; }
    .persona-guide-btn { width: 100%; }
    body { gap: 10px; padding: 16px 12px; }
    .more-menu-card { border-radius: 24px; }
    .more-menu-toggle { padding: 11px 14px; }
    .more-menu-title { font-size: 12.5px; }
    .more-menu-body { padding: 0 14px 14px; gap: 8px; }
    .more-menu-actions { gap: 8px; }
    .more-menu-btn { font-size: 12.5px; padding: 9px 10px; min-height: 40px; }
    .more-menu-desc { font-size: 11px; }
    .more-menu-footer span { font-size: 10px; }
    .more-menu-footer span:last-child { font-size: 9.5px; }
}

@media (min-width: 480px) {
    body { gap: 14px; }
    .more-menu-card { border-radius: 28px; }
    .more-menu-toggle { padding: 15px 22px; }
    .more-menu-title { font-size: 14px; }
    .more-menu-body { padding: 0 22px 22px; gap: 12px; }
    .more-menu-actions { gap: 12px; }
    .more-menu-btn { font-size: 14px; padding: 11px 16px; min-height: 46px; }
    .more-menu-desc { font-size: 12px; }
    .more-menu-footer span { font-size: 11px; }
    .more-menu-footer span:last-child { font-size: 10.5px; }
}

@media (min-width: 768px) {
    body { gap: 16px; padding: 32px 24px; }
    .more-menu-card { border-radius: 32px; }
    .more-menu-toggle { padding: 17px 26px; }
    .more-menu-body { padding: 0 26px 26px; }
    .more-menu-btn { font-size: 14.5px; padding: 12px 18px; min-height: 48px; }
    .more-menu-desc { font-size: 12.5px; }
}
