/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
}
/* 视频背景 */
.bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;  /* 保持比例，自动裁剪适配 */
    object-position: center;  /* 居中显示 */
}
/* 视频遮罩层（让文字更清晰） */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);  /* 黑色半透明遮罩，可调整透明度 */
    z-index: 0;
    pointer-events: none;
}
/* ---------- 最底层大容器 ---------- */
/* 整个页面的所有内容都放在这个 div 里 */
.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;  /* 内容从顶部开始，通过 padding 调整位置 */

    /* 当前背景：深色渐变 (后续可自行替换为图片) */
    /*background: linear-gradient(145deg, #0f1419 0%, #1a232c 100%);*/

    /* ----- 背景图片注释行 (取消注释即可启用) ----- */
    /* background-image: url('你的图片地址.jpg'); */
    /*background-size: cover;*/
    /*background-position: center;*/
    /*background-repeat: no-repeat;*/
    /*background-attachment: fixed;*/

    /* 内边距：给内容呼吸空间 */
    padding: 6rem 2rem 2rem 2rem;

    /* 字体设定 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 可选：添加一层极淡的遮罩，让未来背景图片上的文字更清晰 */
.page-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.2);  !* 半透明黑色遮罩，可根据背景图调整 *!*/
    background:linear-gradient(to top, #556DEE, #643EA2);
    pointer-events: none;            /* 让点击穿透到下层元素 */
    z-index: 0;
}

/* 所有主要内容块都需要在遮罩上方 */
.page-wrapper > * {
    position: relative;
    z-index: 2;
}
/* 备案 */
.footer-registration {
    position: relative;
    text-align: center;
    margin-top: 10px;  /* 与卡通人物的间距 */
    pointer-events: auto;  /* 允许点击链接 */
}

.registration-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.registration-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}
/* ---------- 时间模块 (居中靠上) ---------- */
.time-module {
    text-align: center;
    margin-bottom: 2.5rem;   /* 与下方搜索框的间距 */
    margin-top: -2rem;
}

#liveClock {
    font-size: clamp(5rem, 18vw, 4rem);
    font-weight: 450;
    letter-spacing: 6px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    opacity: 0.95;
}

/* ---------- 搜索框模块 ---------- */
.search-module {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* 搜索容器 */
.search-container {
    display: flex;
    align-items: center;
    background: rgba(20, 30, 40, 0.75);
    backdrop-filter: blur(16px);

    border-radius: 60px;
    padding: 0.3rem 0.3rem 0.3rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-container:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(100, 180, 255, 0.2) inset;
    background: rgba(25, 38, 50, 0.85);
}

/* 搜索引擎图标 (左侧) */
.engine-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.engine-icon svg {
    width: 24px;
    height: 24px;
}

/* 输入框 */
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.3rem 0.5rem 0.3rem 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: #f0f4fa;
    caret-color: #6ab0ff;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.search-input::placeholder {
    color: rgba(200, 215, 235, 0.5);
    font-weight: 300;
    font-size: 1.2rem;
}

/* 搜索按钮 */
.search-button {
    background: rgba(60, 100, 150, 0.5);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    margin-left: 8px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.search-button:hover {
    background: rgba(80, 130, 190, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-button:active {
    transform: scale(0.97);
    background: rgba(50, 100, 150, 0.8);
}

/* 搜索引擎切换器 */
.engine-switcher {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.engine-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(30, 40, 55, 0.5);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 80px;
}

.engine-option:hover {
    background: rgba(50, 65, 85, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.engine-option.active {
    background: rgba(70, 130, 200, 0.3);
    border-color: rgba(100, 180, 255, 0.4);
    box-shadow: 0 0 15px rgba(70, 130, 200, 0.3);
}

.engine-option .engine-option-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-option .engine-option-icon svg {
    width: 20px;
    height: 20px;
}

.engine-option .engine-name {
    color: rgba(220, 235, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.engine-option.active .engine-name {
    color: #a0c8ff;
}

/* 响应式调整 */
@media (max-width: 600px) {
    .page-wrapper {
        padding: 4rem 1.2rem 2rem 1.2rem;
    }

    .search-container {
        padding: 0.2rem 0.2rem 0.2rem 1rem;
    }

    .search-input {
        font-size: 1.1rem;
        padding: 0.9rem 0.2rem 0.9rem 0;
    }
    /* 输入框获得焦点时隐藏占位符 */
    .search-input:focus::placeholder {
        color: transparent;
    }




    .search-button {
        padding: 0.7rem 1.4rem;
        font-size: 1rem;
    }

    #liveClock {
        font-size: clamp(3.8rem, 15vw, 6rem);
    }

    .engine-switcher {
        gap: 12px;
    }

    .engine-option {
        padding: 6px 12px;
        min-width: 70px;
    }
}