/* 搜索区域基础样式 */
.hero-background {
    background: #f5f7fa;  /* 只保留浅灰色背景 */
}

.hero-section {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 修改遮罩层样式 */
.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* 标题区域样式优化 */
.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 12px;
    font-weight: 600;
}

.hero-title::before {
    content: '';
    width: 40px;
    height: 40px;
    background-image: url('../images/favicon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: #86868b;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #009CF5 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 搜索区域样式 */
.search-container {
    max-width: 640px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: #f5f7fa;  /* 搜索框使用浅灰色背景 */
    border-radius: 100px;
    padding: 6px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 区域选择器样式 */
.region-select {
    position: relative;
    min-width: 100px;
    padding: 0 8px;
}

.region-select select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    padding: 8px 24px 8px 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.region-select select:focus {
    outline: none;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    font-size: 14px;
}

/* 分隔线 */
.divider {
    width: 1px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 0 8px;
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    border: none;
    padding: 8px 12px;
    font-size: 15px;
    background: transparent;
    color: #333;
    min-width: 0; /* 防止输入框溢出 */
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.search-input.has-content {
    font-weight: 500;
}

/* 搜索按钮 */
.search-button {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-button:hover {
    color: #333;
}

.search-button .fa {
    font-size: 16px;
}

.search-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.search-button:active {
    transform: scale(0.95);
}

/* 热门应用标签样式 */
.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.tag {
    background: white;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.tag:hover {
    background: #f5f7fa;
    color: #333;
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-wrapper {
        margin: 0 12px;
    }

    .hero-title {
        font-size: 1.8rem;
        gap: 10px;
    }
    
    .hero-title::before {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .search-wrapper {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 6px;
        gap: 8px;
    }

    .region-select {
        min-width: 85px;
        width: auto;
        margin-bottom: 0;
        padding: 0 4px;
    }

    .region-select select {
        padding: 8px 20px 8px 4px;
        font-size: 13px;
    }

    .select-arrow {
        right: 6px;
        font-size: 12px;
    }

    .divider {
        display: block;
        height: 20px;
        margin: 0 4px;
    }

    .search-input {
        padding: 8px;
        font-size: 14px;
    }

    .search-button {
        padding: 6px 10px;
    }

    .search-button .fa {
        font-size: 14px;
    }

    /* 标签响应式调整 */
    .search-tags {
        padding: 0 10px;
    }

    .tag {
        padding: 4px 10px;
        font-size: 12px;
    }

    .hero-title {
        font-size: 1.5rem;
        gap: 8px;
    }
    
    .hero-title::before {
        width: 30px;
        height: 30px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .region-select {
        min-width: 75px;
    }

    .region-select select {
        font-size: 12px;
    }

    .search-input {
        font-size: 13px;
    }
}

/* 搜索结果动画 */
.apps-grid {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.apps-grid.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

.apps-grid.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 无结果状态样式 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #86868b;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.no-results span {
    font-size: 14px;
}

/* 错误提示样式 */
.search-error {
    text-align: center;
    padding: 30px 20px;
    background: #fff3f3;
    border-radius: 12px;
    color: #ff3b30;
}

.search-error i {
    font-size: 24px;
    margin-bottom: 8px;
}

.search-error p {
    font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .no-results i {
        font-size: 36px;
    }

    .no-results p {
        font-size: 16px;
    }
} 