/* Premium Product Search PRO Styles - 放大版 */
.pps-container {
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pps-search-box {
    display: flex;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    min-height: 85px;
}

.pps-search-box:focus-within {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.35);
}

.pps-input-wrapper {
    flex: 1;
    position: relative;
    min-width: 0;
    padding: 5px 10px;
}

.pps-search-input {
    width: 100%;
    height: 100%;
    min-height: 75px;
    padding: 0 25px 0 65px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    background: transparent;
    border: none;
    outline: none;
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.pps-search-input::placeholder {
    color: #888;
    font-weight: 400;
    font-size: 17px;
    transition: all 0.3s ease;
    letter-spacing: 0.1px;
}

.pps-search-input:focus::placeholder {
    color: #aaa;
    transform: translateX(5px);
}

.pps-search-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #31b38c;
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
    pointer-events: none;
    opacity: 0.9;
}

.pps-search-box:focus-within .pps-search-icon {
    color: #267c61;
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
}

.pps-search-button {
    padding: 0 45px;
    background: linear-gradient(135deg, #31b38c 0%, #2a9c7a 100%);
    color: white;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pps-search-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: 0.6s;
}

.pps-search-button:hover {
    background: linear-gradient(135deg, #2a9c7a 0%, #238566 100%);
    padding-right: 50px;
    min-width: 165px;
}

.pps-search-button:hover::before {
    left: 100%;
}

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

.pps-button-icon {
    font-size: 20px;
    line-height: 1;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.pps-search-button:hover .pps-button-icon {
    transform: translateX(5px) rotate(15deg) scale(1.1);
}

/* 脉冲动画效果 */
@keyframes pps-pulse {
    0% { box-shadow: 0 0 0 0 rgba(49, 179, 140, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(49, 179, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(49, 179, 140, 0); }
}

.pps-search-input:focus {
    animation: pps-pulse 2s infinite;
}

/* 抖动动画 */
@keyframes pps-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 加载动画 */
@keyframes pps-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pps-loading .pps-button-icon {
    animation: pps-spin 1s linear infinite;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .pps-container {
        max-width: 800px;
        margin: 25px auto;
    }
    
    .pps-search-box {
        border-radius: 22px;
        min-height: 80px;
    }
    
    .pps-search-input {
        min-height: 70px;
        padding-left: 60px;
        font-size: 17px;
    }
    
    .pps-search-icon {
        left: 28px;
        font-size: 22px;
    }
    
    .pps-search-button {
        padding: 0 40px;
        min-width: 150px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .pps-container {
        max-width: 95%;
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .pps-search-box {
        flex-direction: column;
        border-radius: 20px;
        min-height: auto;
    }
    
    .pps-input-wrapper {
        padding: 20px 25px;
    }
    
    .pps-search-input {
        min-height: 60px;
        padding: 0 20px 0 55px;
        font-size: 16px;
    }
    
    .pps-search-input::placeholder {
        font-size: 16px;
    }
    
    .pps-search-icon {
        left: 30px;
        font-size: 20px;
    }
    
    .pps-search-button {
        height: 65px;
        padding: 0 35px;
        border-radius: 0 0 20px 20px;
        min-width: 100%;
        font-size: 16px;
    }
    
    .pps-search-button:hover {
        padding-right: 40px;
    }
    
    .pps-button-icon {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .pps-container {
        max-width: 100%;
        padding: 0 10px;
        margin: 15px auto;
    }
    
    .pps-search-box {
        border-radius: 18px;
    }
    
    .pps-input-wrapper {
        padding: 15px 20px;
    }
    
    .pps-search-input {
        min-height: 55px;
        padding: 0 15px 0 50px;
        font-size: 15px;
    }
    
    .pps-search-input::placeholder {
        font-size: 15px;
    }
    
    .pps-search-icon {
        left: 25px;
        font-size: 18px;
    }
    
    .pps-search-button {
        height: 60px;
        padding: 0 25px;
        border-radius: 0 0 18px 18px;
        font-size: 15px;
        gap: 8px;
    }
    
    .pps-search-button:hover {
        padding-right: 30px;
    }
    
    .pps-button-icon {
        font-size: 16px;
    }
}

/* 超小屏幕 */
@media (max-width: 360px) {
    .pps-search-input {
        font-size: 14px;
        padding-left: 45px;
    }
    
    .pps-search-icon {
        left: 22px;
        font-size: 16px;
    }
    
    .pps-search-button {
        font-size: 14px;
        padding: 0 20px;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .pps-search-box {
        background: rgba(30, 30, 40, 0.95);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.25),
            0 8px 20px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .pps-search-box:focus-within {
        border-color: rgba(255, 255, 255, 0.25);
    }
    
    .pps-search-input {
        color: #f0f0f0;
    }
    
    .pps-search-input::placeholder {
        color: #aaa;
    }
    
    .pps-search-icon {
        color: #4ec9a9;
    }
    
    .pps-search-box:focus-within .pps-search-icon {
        color: #5de0bf;
    }
}

/* 搜索结果样式 */
.pps-search-results {
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: pps-fadeIn 0.3s ease;
}

@keyframes pps-fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pps-result-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.pps-result-item:hover {
    background: #f8f9fa;
}

.pps-result-item:last-child {
    border-bottom: none;
}

.pps-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.pps-result-price {
    color: #31b38c;
    font-weight: 600;
}

/* 加载状态 */
.pps-loading {
    pointer-events: none;
    opacity: 0.8;
}

.pps-loading .pps-search-button {
    background: linear-gradient(135deg, #2a9c7a 0%, #238566 100%);
}

/* 错误状态 */
.pps-error {
    animation: pps-shake 0.5s ease-in-out;
}