/* =========================================================================
 * 小窝 · 3D 时光拾忆  —— 留言板下方的独立体验模块 + 共享全屏浮层
 * -------------------------------------------------------------------------
 * 只被 index.html 引用（单独成文件，不动 style.css）。
 * 每个体验是一张独立大卡片（赛博猫同款视觉语言），点「进入体验」在浮层中
 * 打开，首页音乐不间断；也可「新标签页打开」。
 * 颜色走站点变量（--bg-card / --text / --text-light / --border / --pink ...）。
 * ========================================================================= */

/* ---------- 1. 模块区标题 ---------- */
.experiences-zone { padding-bottom: 20px; }
.section-sub {
    margin: -4px 0 0;
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ---------- 2. 独立体验卡片（每张一张大卡片，依次竖排） ---------- */
.exp-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 20px 22px;
    text-align: left;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

/* 顶部一条流动的粉紫霓虹线，暗示这是"会动"的新模块 */
.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff7eb3, #c084fc, #7dd3fc, #ff7eb3);
    background-size: 300% 100%;
    animation: expEdge 7s linear infinite;
}

@keyframes expEdge {
    to { background-position: 300% 0; }
}

.exp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-focus);
}

.exp-emoji {
    font-size: 2.6rem;
    line-height: 1;
    animation: expBob 1.6s ease-in-out infinite;
    display: inline-block;
}

@keyframes expBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.exp-title {
    margin: 0 0 6px;
    font-size: 1.14rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
}

.exp-desc {
    margin: 0;
    font-size: .84rem;
    line-height: 1.7;
    color: var(--text-light);
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.exp-tag {
    font-size: .72rem;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    background: rgba(255, 126, 179, .12);
    border: 1px solid rgba(255, 126, 179, .3);
    color: var(--text-light);
}

[data-theme="dark"] .exp-tag {
    background: rgba(192, 132, 252, .14);
    border-color: rgba(192, 132, 252, .32);
}

.exp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 126, 179, .35);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.exp-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 10px 28px rgba(192, 132, 252, .45);
}

.exp-btn:active { transform: translateY(0); }

.exp-direct {
    display: block;
    margin-top: 8px;
    width: fit-content;
    font-size: .75rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.exp-direct:hover { color: var(--pink); }

/* 窄屏：卡片转上下排列 */
@media (max-width: 700px) {
    .exp-card { grid-template-columns: 1fr; text-align: center; }
    .exp-tags { justify-content: center; }
    .exp-direct { margin-left: auto; margin-right: auto; }
}

/* ---------- 3. 共享全屏浮层 ---------- */
.exp-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;          /* 压过站点其它浮层（见 cyber-cat.css 说明） */
    display: none;
    background: rgba(8, 8, 12, .92);
    backdrop-filter: blur(6px);
}
.exp-overlay.open { display: block; }

.exp-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #0a0a10;
}

.exp-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
    background: #141420;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    color: #e8e6df;
    font-size: .86rem;
}
.exp-bar-title { letter-spacing: .04em; }
.exp-bar-actions { display: flex; align-items: center; gap: 14px; }
.exp-open-tab {
    font-size: .72rem;
    color: #a6a59f;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.exp-open-tab:hover { color: #fff; }
.exp-close {
    width: 30px;
    height: 30px;
    border: 1px solid #454545;
    border-radius: 50%;
    background: #000;
    color: #e8e6df;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.exp-close:hover { color: #fff; background: #2a2a3a; }

.exp-body { position: relative; flex: 1; min-height: 0; }
.exp-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.exp-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #a6a59f;
    font-size: .8rem;
    text-align: center;
    background: #0a0a10;
    transition: opacity .35s ease;
}
.exp-loading.hide { opacity: 0; pointer-events: none; }

/* 防止浮层打开时首页还能滚动 */
body.exp-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .exp-emoji { animation: none; }
}