/* ================= 基础重置 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #111 !important; 
    overflow: hidden !important; 
}

.huge-bg {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
    pointer-events: none;
    opacity: 1 !important;
    filter: none !important;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    margin: 0 auto;
    padding: 80px 0 0; 
    gap: 65px; 
    position: relative;
    z-index: 5;
}

/* 头像 */
.avatar {
    width: 180px;  
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 0, 127, 0.8);
    box-shadow: 
        0 0 15px rgba(255, 0, 127, 0.8),
        0 0 30px rgba(255, 0, 127, 0.6),
        0 0 45px rgba(255, 0, 127, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    display: block;
    cursor: pointer;
    margin-bottom: 10px;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 20px rgba(255, 0, 127, 0.9),
        0 0 40px rgba(255, 0, 127, 0.7),
        0 0 60px rgba(255, 0, 127, 0.5),
        0 15px 35px rgba(0, 0, 0, 0.3);
}

.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 中间文字框 */
.intro {
    background: rgba(255, 255, 255, 0.15); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px 80px; 
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
    flex-shrink: 0;
    width: fit-content;
    max-width: 90%;
}

.intro h1 {
    font-size: 5rem; 
    font-weight: 800;
    letter-spacing: 8px; 
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 
        0 0 6px rgba(255, 0, 127, 0.8),
        0 0 15px rgba(255, 0, 127, 0.6),
        0 0 30px rgba(255, 0, 127, 0.4),
        0 0 45px rgba(255, 0, 127, 0.2);
    display: inline-block;
    white-space: nowrap; 
}

.intro p {
    font-size: 1.3rem; 
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 3px; 
    white-space: nowrap; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* 底部导航 */
.icon-nav {
    display: flex;
    flex-wrap: nowrap; 
    justify-content: center;
    align-items: center;
    gap: 35px; 
    width: 100%;
    max-width: 1300px; 
    flex-shrink: 0;
    margin-top: 20px; 
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    width: 85px; 
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.icon-item:hover {
    transform: translateY(-8px);
}

.icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px; 
    height: 80px; 
    border-radius: 50%;
    background: #e6e6e6; 
    font-size: 36px; 
    box-shadow: 
        0 0 12px rgba(255, 0, 127, 1),    
        0 0 24px rgba(255, 0, 127, 0.8), 
        0 0 40px rgba(255, 0, 127, 0.6), 
        0 0 55px rgba(255, 0, 127, 0.3), 
        0 6px 15px rgba(0, 0, 0, 0.4);   
    transition: all 0.2s;
}

.icon-item:hover .icon-circle {
    background: #ffffff;
    box-shadow: 
        0 0 18px rgba(255, 0, 127, 1),
        0 0 35px rgba(255, 0, 127, 0.9),
        0 0 55px rgba(255, 0, 127, 0.7),
        0 0 80px rgba(255, 0, 127, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.5);
}

.icon-label {
    font-size: 16px; 
    color: #ffffff;
    font-weight: 700; 
    white-space: nowrap;
    text-shadow: 
        0 0 5px rgba(255, 0, 127, 1),
        0 0 12px rgba(255, 0, 127, 0.8),
        0 0 18px rgba(255, 0, 127, 0.6),
        0 2px 4px rgba(0, 0, 0, 0.8); 
}

/* 底部时间 */
#date-footer {
    width: 100%;
    text-align: center; 
    color: #ffffff; 
    font-size: 22px; 
    font-weight: 600;
    letter-spacing: 3px;
    padding-top: 10px; 
    pointer-events: none; 
    text-shadow: 
        0 0 4px #ff007f, 
        0 0 12px #ff007f, 
        0 0 20px #e60073,
        0 0 30px #e60073;
    position: relative; 
    z-index: 10;
}

/* 等比缩放控制 */
#scale-wrapper {
    width: 1920px;
    height: 1080px;
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: top center;
    transition: transform 0.1s ease-out;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   👇 移动端适配布局 (当屏幕宽度小于等于 768px 时生效) 👇
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 取消固定宽高等比缩放 */
    #scale-wrapper {
        position: relative;
        width: 100% !important;
        height: auto !important;
        min-height: 100vh;
        left: auto;
        transform: none !important;
    }

    html, body { overflow: auto !important; } /* 允许手机端上下滑动 */

    main {
        padding: 40px 15px 20px;
        gap: 35px; 
    }

    .avatar {
        width: 130px;
        height: 130px;
    }

    .intro {
        padding: 25px 35px; 
        border-radius: 20px;
    }

    .intro h1 {
        font-size: 2.8rem; 
        letter-spacing: 5px; 
    }

    .intro p {
        font-size: 1rem; 
        letter-spacing: 2px; 
    }

    /* 手机端导航改为横向滑动 */
    .icon-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 25px;
        /* 隐藏滚动条 */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .icon-nav::-webkit-scrollbar { display: none; }

    .icon-circle {
        width: 60px; 
        height: 60px; 
        font-size: 26px; 
    }
    
    .icon-item { width: 70px; gap: 8px;}
    .icon-label { font-size: 14px; }

    #date-footer {
        font-size: 16px;
        margin-top: 10px;
    }
}