/* ================= 基础重置 ================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6; min-height: 100vh; width: 100%;
    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; }

main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; z-index: 5; min-height: 100vh; width: 100%; }

.top-header-area { position: relative; width: 100%; max-width: 800px; height: 110px; margin-top: 0px; margin-bottom: 20px; display: flex; justify-content: center; align-items: center; }

.center-group { display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 10; }

.side-btn {
    position: absolute; top: 40%; transform: translateY(-50%); height: 38px; padding: 0 20px; color: #ffffff; font-size: 15px; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255, 255, 255, 0.1) !important; 
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1.5px solid #d81e5b;
    box-shadow: 0 0 10px rgba(216, 30, 91, 0.6), inset 0 0 5px rgba(216, 30, 91, 0.3); border-radius: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); flex-shrink: 0; white-space: nowrap; z-index: 3; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.side-btn:hover { transform: translateY(-50%) scale(1.06); background: rgba(255, 255, 255, 0.2) !important; box-shadow: 0 0 15px rgba(216, 30, 91, 0.8), inset 0 0 8px rgba(216, 30, 91, 0.5); }
.floating-back { left: 20px; } 
.floating-consult { right: 20px; }

.page-title-bar {
    background-color: #d81e5b; color: #ffffff; text-shadow: 0 2px 4px rgba(0,0,0,0.3); padding: 12px 40px; border-radius: 30px; 
    border: 2px solid rgba(255, 255, 255, 0.4); box-shadow: 0 0 20px rgba(216, 30, 91, 0.6); font-size: 1.4rem; font-weight: bold; white-space: nowrap; z-index: 2; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-title-bar:hover { transform: scale(1.04); box-shadow: 0 0 25px rgba(216, 30, 91, 0.8); }

#date-footer { color: #ffffff !important; font-size: 16px !important; font-weight: 600 !important; white-space: nowrap !important; position: relative; z-index: 1; text-shadow: 0 0 5px rgba(216, 30, 91, 0.8), 0 0 10px rgba(216, 30, 91, 0.6), 0 0 15px rgba(216, 30, 91, 0.4), 0 1px 2px rgba(0, 0, 0, 0.8) !important; }

.avatar-grid { display: grid; grid-template-columns: repeat(4, 175px); gap: 20px; width: max-content; margin: 0 auto; position: relative; }

.avatar-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    width: 175px; height: 175px; background: rgba(255, 255, 255, 0.15) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    border: 1.5px solid #d81e5b; box-shadow: 0 0 10px rgba(216, 30, 91, 0.4), inset 0 0 6px rgba(216, 30, 91, 0.1); border-radius: 16px; 
    text-decoration: none; gap: 8px; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.avatar-tile:hover { transform: scale(1.05); background: rgba(255, 255, 255, 0.25) !important; box-shadow: 0 0 20px rgba(216, 30, 91, 0.8), inset 0 0 12px rgba(216, 30, 91, 0.3); }

.tile-icon { font-size: 26px; line-height: 1; }
.tile-label { font-size: 16px; color: #ffffff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); white-space: nowrap; font-weight: 600; }

.icon-nav { display: flex; flex-wrap: nowrap; justify-content: center; gap: 38px; width: max-content; margin-top: 35px; margin-left: auto; margin-right: auto; padding-bottom: 10px; }
.icon-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: #ffffff; flex-shrink: 0; gap: 10px;}
.icon-circle { width: 70px; height: 70px; border-radius: 50%; background: rgba(255, 255, 255, 0.15) !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1.5px solid #d81e5b; box-shadow: 0 0 10px rgba(216, 30, 91, 0.3); display: flex; align-items: center; justify-content: center; font-size: 32px; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.icon-item:hover .icon-circle { transform: scale(1.08); background: rgba(255, 255, 255, 0.25) !important; box-shadow: 0 0 15px rgba(216, 30, 91, 0.6); }
.icon-item.active .icon-circle { background: #d81e5b !important; border: 2px solid rgba(255, 255, 255, 0.6) !important; box-shadow: 0 0 20px rgba(216, 30, 91,0.8), inset 0 0 12px rgba(255, 255, 255, 0.3) !important; }
.icon-label { font-size: 16px; font-weight: 600; white-space: nowrap; text-shadow: 0 0 6px rgba(216, 30, 91, 0.8), 0 0 12px rgba(216, 30, 91, 0.6), 0 0 18px rgba(216, 30, 91, 0.4), 0 2px 4px rgba(0, 0, 0, 0.8); }
.icon-item.active .icon-label { font-size: 18px; font-weight: bold; }

#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; }

/* ================= 弹窗样式 ================= */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 9999;
    align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }

/* 用于弹窗叠加时，层级更高 */
#xhsSubModal, #douyinSubModal, #weiboSubModal, #staticWeiboSubModal, #theaterSubModal { z-index: 10000; background: rgba(0, 0, 0, 0.85); }

.modal-content {
    background: rgba(30, 30, 30, 0.95); border: 2px solid #d81e5b; border-radius: 20px;
    padding: 35px 30px 30px 30px; width: 500px; max-width: 90%; box-shadow: 0 0 30px rgba(216, 30, 91, 0.6);
    position: relative; display: flex; flex-direction: column; gap: 20px; text-align: center;
    max-height: 90vh; overflow-y: auto; /* 内容过多时支持滚动 */
}

.modal-title { color: #fff; font-size: 20px; font-weight: bold; text-shadow: 0 0 8px rgba(216, 30, 91, 0.8); margin-bottom: 5px; }

.modal-close {
    position: absolute; top: 10px; right: 15px; color: #fff; font-size: 26px; cursor: pointer;
    transition: transform 0.2s ease; text-shadow: 0 0 5px rgba(216, 30, 91, 0.8);
}
.modal-close:hover { transform: scale(1.2); color: #d81e5b; }

.range-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px;
}
/* 针对只有两个按钮的弹窗设置两列均分 */
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 小按钮样式 */
.range-btn {
    background: rgba(255, 255, 255, 0.1); border: 1.5px solid #d81e5b; border-radius: 10px;
    color: #fff; padding: 12px 0; text-decoration: none; font-size: 15px; font-weight: bold;
    transition: all 0.2s ease; cursor: pointer; display: block; text-align: center;
}
.range-btn:hover {
    background: #d81e5b; box-shadow: 0 0 15px rgba(216, 30, 91, 0.8); transform: scale(1.05);
}

/* 大卡片样式 */
.modal-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    width: 100%; height: 140px; background: rgba(255, 255, 255, 0.15) !important; 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); 
    border: 1.5px solid #d81e5b; box-shadow: 0 0 10px rgba(216, 30, 91, 0.4), inset 0 0 6px rgba(216, 30, 91, 0.1); 
    border-radius: 16px; text-decoration: none; gap: 6px; overflow: hidden; 
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.modal-tile:hover { 
    transform: scale(1.05); background: rgba(255, 255, 255, 0.25) !important; 
    box-shadow: 0 0 20px rgba(216, 30, 91, 0.8), inset 0 0 12px rgba(216, 30, 91, 0.3); 
}

/* 🌟 最终统一：所有弹窗内的大字，纯白 + 浓烈玫红发光 🌟 */
.tile-en {
    color: #ffffff; 
    font-family: sans-serif; 
    font-weight: 900; 
    font-size: 20px; /* 统一字号 */
    letter-spacing: 1px;
    text-shadow: 0 0 6px #d81e5b, 0 0 14px #d81e5b, 0 0 20px #d81e5b;
}


/* ==========================================================================
   👇 移动端适配布局 (当屏幕宽度小于等于 768px 时生效) 👇
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 取消 1920x1080 的强制缩放限制 */
    #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: 10px; }

    /* 头部区域自适应 */
    .top-header-area {
        height: auto;
        flex-direction: column;
        gap: 15px;
        margin-top: 10px;
        margin-bottom: 25px;
    }

    .side-btn {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none !important;
        margin: 0 5px;
        display: inline-flex;
    }

    .floating-back, .floating-consult { position: static; }

    .center-group { gap: 12px; width: 100%; }
    .page-title-bar { font-size: 1.2rem; padding: 10px 30px; }
    #date-footer { font-size: 14px !important; }

    /* 卡片网格改为手机上的 2 列 */
    .avatar-grid {
        grid-template-columns: repeat(2, 150px);
        gap: 15px;
        width: 100%;
        justify-content: center;
    }

    .avatar-tile {
        width: 150px;
        height: 150px;
        gap: 5px;
    }

    .tile-icon { font-size: 22px; }
    .tile-en { font-size: 18px; }
    .tile-label { font-size: 14px; }

    /* 底部导航栏横向滑动 */
    .icon-nav {
        justify-content: flex-start;
        overflow-x: auto;
        width: 100%;
        padding: 0 10px 20px 10px;
        gap: 25px;
        /* 隐藏滚动条 */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .icon-nav::-webkit-scrollbar { display: none; }

    .icon-circle {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    .icon-label { font-size: 14px; }
    .icon-item.active .icon-label { font-size: 15px; }

    /* 弹窗适配 */
    .modal-content {
        padding: 30px 15px 20px 15px;
        width: 95%;
        gap: 15px;
    }
    .range-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .modal-tile { height: 110px !important; }
    .modal-tile .tile-en { font-size: 16px; }
    .modal-tile .tile-label { font-size: 13px; }
    .range-btn { font-size: 14px; }
}