/* 搜索框样式 */

.search-box {
    background: rgba(40, 40, 40, 0.35);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 2px solid rgba(120, 120, 120, 0.5);
    color: rgba(210, 210, 210, 0.9);
    width: 50%;
    padding: 15px 25px 15px 20px; /* 减少左侧内边距，让图标更靠左 */
    margin: 20px 0;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    outline: none;
    cursor: text;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: left; /* 左对齐 */
    position: relative;
}

.search-box:hover {
    background: rgba(55, 55, 55, 0.55);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-color: rgba(150, 150, 150, 0.7);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.search-box:focus {
    background: rgba(30, 30, 30, 0.6);
    outline: none;
    border-color: rgba(180, 180, 180, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.search-box::placeholder {
    color: rgba(255, 255, 255, 0.6);
    text-align: left; /* placeholder左对齐 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        width: 70%; /* 平板端增加宽度 */
        padding: 12px 20px 12px 20px; /* 减少左侧内边距，让图标更靠左 */
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: 85%; /* 手机端进一步增加宽度 */
        padding: 10px 16px 10px 16px; /* 减少左侧内边距，让图标更靠左 */
        font-size: 14px;
    }
}
