  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #050a18;
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    overscroll-behavior: none;
}

/* Dynamic Tech Background */
.tech-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Matrix Digital Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    transform: translateZ(0);
    will-change: transform;
}

/* Network Particles Effect */
#particles-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateZ(0);
    will-change: transform;
}

/* Hexagonal Grid */
.hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(60deg, rgba(0, 229, 255, 0.05) 25%, transparent 25.5%),
        linear-gradient(60deg, transparent 75%, rgba(0, 229, 255, 0.05) 75.5%),
        linear-gradient(120deg, rgba(0, 229, 255, 0.05) 25%, transparent 25.5%),
        linear-gradient(120deg, transparent 75%, rgba(0, 229, 255, 0.05) 75.5%);
    background-size: 40px 70px;
    opacity: 0.2;
    animation: moveHexGrid 60s linear infinite;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes moveHexGrid {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Glowing Circles */
.glowing-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3) 0%, rgba(0, 229, 255, 0) 70%);
    animation: pulse 4s infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Circuit Board Lines */
.circuit-board {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    transform: translateZ(0);
    will-change: transform;
}

.circuit-line {
    position: absolute;
    background: #00e5ff;
    box-shadow: 0 0 5px #00e5ff;
}

.circuit-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00e5ff;
    border-radius: 50%;
    box-shadow: 0 0 5px #00e5ff;
}

/* 登录容器样式 */
.search-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 10;
    padding: 30px;
    margin: 0 auto;
    background: rgba(5, 15, 35, 0.4);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    transform: translateZ(0);
    will-change: transform;
}

/* 表单容器样式 */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: relative;
}

/* 输入框容器样式 */
.search-box-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 0;
    transform: translateZ(0);
    will-change: transform;
    min-height: 50px;
    touch-action: manipulation;
}

.search-box {
    width: 100%;
    height: 100%;
    background: rgba(5, 15, 35, 0.6);
    border: 2px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    padding: 0 45px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform, border-color;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    touch-action: manipulation;
    cursor: text;
    -webkit-user-select: text;
    user-select: text;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.search-box:focus {
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* 搜索图标 */
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-icon svg {
    fill: none;
    stroke: #00e5ff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

/* 科技线条效果 */
.tech-lines {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    pointer-events: none;
}

.tech-line {
    position: absolute;
    background: #00e5ff;
    opacity: 0.5;
}

.tech-line:nth-child(1) {
    top: 5px;
    right: 0;
    width: 15px;
    height: 2px;
}

.tech-line:nth-child(2) {
    top: 12px;
    right: 5px;
    width: 10px;
    height: 2px;
}

.tech-line:nth-child(3) {
    top: 19px;
    right: 0;
    width: 20px;
    height: 2px;
}

/* Glowing border effect */
.search-box-wrapper::before,
.search-box-wrapper::after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: linear-gradient(45deg, 
        #00e5ff, #0047ab, #00e5ff, #0047ab, 
        #00e5ff, #0047ab, #00e5ff, #0047ab);
    background-size: 400%;
    border-radius: 10px;
    z-index: -1;
    animation: glowing 20s linear infinite;
}

.search-box-wrapper::after {
    filter: blur(10px);
    opacity: 0.5;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* 错误提示样式 */
.error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    color: #ff4d4d;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮容器样式 */
.button-container {
    width: 100%;
    height: 50px;
    margin-top: 5px;
    position: relative;
}

.confirm-button {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a6dff, #00e5ff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.confirm-button:active {
    transform: scale(0.98);
}

.confirm-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .search-container {
        width: 85%;
        padding: 25px;
        gap: 25px;
        transform: none;
        margin: auto;
    }

    form {
        gap: 20px;
    }

    .search-box-wrapper,
    .search-box,
    .button-container,
    .confirm-button {
        height: 48px;
        min-height: 48px;
    }

    .search-box {
        font-size: 16px;
        padding: 0 40px;
    }

    .search-icon {
        left: 12px;
    }

    .tech-lines {
        right: 12px;
    }
}

@media (max-width: 576px) {
    .search-container {
        width: 92%;
        padding: 20px;
    }

    .search-box-wrapper,
    .search-box,
    .button-container,
    .confirm-button {
        height: 44px;
        min-height: 44px;
    }

    .search-box {
        font-size: 16px;
        padding: 0 35px;
    }

    .search-icon {
        left: 10px;
        width: 18px;
        height: 18px;
    }

    .tech-lines {
        right: 10px;
        width: 25px;
    }
}

/* 优化移动端性能 */
@media (prefers-reduced-motion: reduce) {
    .hex-grid {
        animation: none;
    }
}

@supports (-webkit-touch-callout: none) {
    body {
        height: -webkit-fill-available;
    }
}

/* 触摸设备优化 */
@media (hover: none) {
    button::before {
        display: none;
    }

    button:active {
        background: rgba(0, 229, 255, 0.3);
        transform: translateY(1px);
    }
}

/* 标题样式 */
.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.title {
    font-family: 'Microsoft YaHei', serif;
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(45deg, #d4d4d4, #2ea0e2, #2466f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* 添加页面级优化 */
#app {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-overflow-scrolling: touch;
}