/* ===== 纯七个人主页 - 增强样式 ===== */

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }

::selection { background: rgba(255,255,255,0.2); color: #fff; }

/* 安全网：确保所有内容区块默认可见 */
.ch { opacity: 1 !important; visibility: visible !important; }

/* ============================================
   🎨 INFJ-A 风格基调
   — 深邃、宁静、有温度
   ============================================ */

/* 导航栏 */
nav a { position: relative; letter-spacing: 2px; }
nav a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1px; background: #fff; transition: width 0.3s ease;
}
nav a:hover::after, nav a.active::after { width: 100%; }

/* 头像 */
.about .introduct img.avatar {
    box-shadow: 0 0 30px rgba(255,255,255,0.1);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.about .introduct img.avatar:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 0 50px rgba(255,255,255,0.2);
}

/* Slogan 渐变 */
.hello h1 {
    background: linear-gradient(135deg, #fff, #a8b8ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 技能条 */
.about ul.skill li .progress { position: relative; overflow: visible; border-radius: 2px; }
.about ul.skill li .progress > div {
    border-radius: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
.about ul.skill li .progress div:after { border-top-color: #764ba2; }

/* 社交链接卡片 */
.find .links .item { border-radius: 8px; overflow: hidden; position: relative; }
.find .links .item .bg { transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
.find .links .item:hover .bg { transform: scale(1.02); filter: brightness(1.1); }

/* 标题下划线 */
.ch h2.chtitle:after { transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.ch:hover h2.chtitle:after { width: 15%; }

/* 页脚分隔线 — 更精致的光晕感 */
.footer { position: relative; overflow: hidden; }
.footer::before {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.08) 20%,
        rgba(168,184,255,0.25) 50%,
        rgba(255,255,255,0.08) 80%,
        transparent 100%
    );
}

/* 页脚短语间距 — 人山海海 · 山山而川 */
.footer .footer-phrase {
    display: inline-block;
}
.footer .footer-phrase + .footer-phrase {
    margin-left: 12px;
}
.footer .footer-dot {
    display: inline-block;
    margin: 0 8px;
    color: rgba(255,255,255,0.25);
}

/* ============================================
   🎵 音乐控制按钮
   ============================================ */

.music-control {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.6);
    font-size: 18px;
}

.music-control:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    box-shadow: 0 6px 30px rgba(0,0,0,0.3);
    transform: scale(1.08);
}

.music-control:active {
    transform: scale(0.95);
}

/* 播放状态：旋转动画 & 发光 */
.music-control.playing {
    color: #a8b8ff;
    border-color: rgba(168,184,255,0.3);
    box-shadow: 0 0 25px rgba(168,184,255,0.15), 0 4px 20px rgba(0,0,0,0.2);
}

.music-control.playing .fa-music {
    animation: music-spin 3s linear infinite;
}

@keyframes music-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 播放时音符脉动光晕 */
.music-control.playing::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,184,255,0.15) 0%, transparent 70%);
    animation: music-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes music-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* 移动端音乐按钮调整 */
@media screen and (max-width: 700px) {
    .music-control {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ============================================
   🏛️ 旗下主站 / 个人副业 / 旗下应用
      托管页面 / 反馈页面
   ============================================ */

.gate .links .item {
    box-sizing: border-box !important;  /* 关键修复：padding 算在宽度内 */
    width: calc(25% - 20px) !important;
    height: auto !important;
    min-height: 64px;
    margin: 8px 10px !important;
    padding: 14px 16px;
    float: left !important;
    opacity: 0.9;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.gate .links .item:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* 头像 */
.gate .links .item .avatar {
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    margin-right: 14px;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    float: left;
}
.gate .links .item .avatar img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    border-radius: 50%;
    object-fit: cover;
}

/* 文字 */
.gate .links .item .inner {
    padding: 4px 0;
}
.gate .links .item .inner h5 {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}
.gate .links .item .inner p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    margin-top: 2px;
}

/* 区块间距 */
.gate.ch { padding: 48px 0; }
.gate.ch:first-of-type { padding-top: 60px; }

/* ============================================
   📐 自适应 | PC 4列 · 移动 2列
   ============================================ */

/* ≥701px：4列 */
@media screen and (min-width: 701px) {
    .gate .links .item { width: calc(25% - 20px) !important; }
}

/* ≤700px：2列 */
@media screen and (max-width: 700px) {
    .gate.ch { padding: 32px 0; }
    .gate .links .item {
        box-sizing: border-box !important;
        width: calc(50% - 20px) !important;
        margin: 6px 10px !important;
        padding: 12px 14px;
        min-height: 60px;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .gate .links .item .avatar {
        width: 48px; height: 48px; line-height: 48px;
    }
    .gate .links .item .avatar img {
        width: 48px; height: 48px; max-width: 48px;
    }
    .gate .links .item .inner h5 { font-size: 14px; }
    .gate .links .item .inner p { font-size: 11px; }
}
