/* 移动端软件展示优化 */
@media (max-width: 768px) {
    .modern-software-showcase {
        padding: 15px 8px !important;
    }
    
    .modern-software-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 4px !important;
        padding: 0 4px !important;
    }
    
    .modern-software-card {
        min-width: 280px !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    
    .software-card-header {
        display: flex !important;
 
        gap: 12px !important;
        padding: 12px !important;
        min-height: auto !important;
    }
    
    .software-icon-container {
        flex-shrink: 0 !important;
    }
    
    .software-icon-modern,
    .default-software-icon-modern {
        width: 52px !important;
        height: 52px !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
    }
    
    .default-software-icon-modern {
        font-size: 24px !important;
    }
    
    .software-main-details {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .software-title-modern {
        font-size: 15px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px !important;
        font-weight: 600 !important;
    }
    
    .software-vendor-modern {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
    
    .software-rating-modern {
        margin-bottom: 8px !important;
    }
    
    .rating-stars-modern {
        margin-right: 6px !important;
    }
    
    .star-modern {
        font-size: 12px !important;
    }
    
    .rating-score-modern {
        font-size: 12px !important;
    }
    
    .download-stats-modern {
        font-size: 11px !important;
    }
    
    .software-actions-modern {
        padding: 0 12px 12px !important;
    }
    
    .btn-get-modern,
    .btn-view-modern {
        padding: 8px 16px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        min-width: 80px !important;
        height: 36px !important;
    }
    
    .software-description-modern {
        display: none !important;
        font-size: 12px !important;
        line-height: 1.4 !important;
        max-height: none !important;
    }
    
    .software-meta-modern {
        padding: 0 12px 8px !important;
        gap: 8px !important;
    }
    
    .meta-item-modern {
        font-size: 11px !important;
        padding: 3px 8px !important;
        border-radius: 10px !important;
    }
    
    .meta-item-modern i {
        font-size: 10px !important;
    }

    /* 游戏模块网格布局 - 手机一行两列 */
    .game-showcase {
        padding: 15px 8px !important;
    }

    .game-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* 一行两列 */
        gap: 8px !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .game-card,
    .software-showcase-card {
        min-height: 220px !important; /* 统一卡片高度 */
        height: 220px !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        background: white !important;
    }

    /* 游戏卡片头部 */
    .game-card .software-icon-wrapper,
    .software-showcase-card .software-icon-wrapper {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 12px 8px !important;
    }

    .game-card .software-icon,
    .game-card .default-software-icon,
    .software-showcase-card .software-icon,
    .software-showcase-card .default-software-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
        flex-shrink: 0 !important;
    }

    .game-card .default-software-icon,
    .software-showcase-card .default-software-icon {
        font-size: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* 游戏卡片内容 */
    .game-card .software-info-content,
    .software-showcase-card .software-info-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;

        text-align: center !important;
    }

    .game-card .software-name,
    .software-showcase-card .software-name {
        font-size: 14px !important;
        line-height: 1.2 !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .game-card .software-rating-display,
    .software-showcase-card .software-rating-display {
        margin-bottom: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    .game-card .rating-stars,
    .software-showcase-card .rating-stars {
        font-size: 12px !important;
    }

    .game-card .rating-text,
    .software-showcase-card .rating-text {
        font-size: 11px !important;
        color: #666 !important;
    }

    .game-card .software-meta-display,
    .software-showcase-card .software-meta-display {
        margin-bottom: 10px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center !important;
    }

    .game-card .software-meta-display span,
    .software-showcase-card .software-meta-display span {
        font-size: 10px !important;
        padding: 2px 6px !important;
        background: #f5f5f5 !important;
        border-radius: 8px !important;
        color: #666 !important;
    }

    /* 游戏卡片按钮 */
    .game-card .download-action,
    .software-showcase-card .download-action {
        margin-top: auto !important;
        padding-top: 0 !important;
    }

    .game-card .btn-download-showcase,
    .software-showcase-card .btn-download-showcase,
    .game-card .btn-game-download {
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 20px !important;
        height: 32px !important;
        border: none !important;
        font-weight: 600 !important;
    }

    /* 游戏按钮特殊颜色 */
    .game-card .btn-game-download {
        background: linear-gradient(135deg, #6f42c1, #e83e8c) !important;
        color: white !important;
    }

    .game-card .btn-game-download:hover {
        background: linear-gradient(135deg, #8a63d2, #f06595) !important;
        transform: translateY(-1px) !important;
    }

    /* 搜索结果页面移动端优化 */
    body.search .content-wrap {
        display: grid !important;
        grid-template-columns: 1fr !important; /* 手机端单列显示 */
        gap: 12px !important;
        padding: 12px 8px !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    body.search .search-results-info {
        background: #f8f9fa !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
        margin-bottom: 16px !important;
        font-size: 13px !important;
        border-left: 3px solid var(--primary-green) !important;
    }

    body.search .post {
        min-height: auto !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
    }

    body.search .post:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    }

    body.search .featured-post {
        height: 140px !important;
        background: #f5f5f5 !important;
    }

    body.search .featured-post img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    body.search .featured-post:not(:has(img))::before {
        font-size: 36px !important;
        color: #ddd !important;
    }

    body.search .content-post {
        padding: 12px !important;
        gap: 6px !important;
    }

    body.search .post-meta {
        margin: 0 0 6px 0 !important;
    }

    body.search .post-meta ul {
        gap: 8px !important;
    }

    body.search .post-meta li {
        font-size: 10px !important;
        gap: 2px !important;
    }

    body.search .post-meta .meta-category {
        padding: 2px 4px !important;
        font-size: 9px !important;
        border-radius: 4px !important;
    }

    body.search .post-title {
        margin: 0 0 6px 0 !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        min-height: auto !important;
    }

    body.search .post-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    body.search .post-content p {
        font-size: 12px !important;
        line-height: 1.4 !important;
        -webkit-line-clamp: 2 !important;
        color: #666 !important;
    }
}

@media (max-width: 480px) {
    .modern-software-showcase {
        padding: 12px 4px !important;
    }
    
    .modern-software-grid {
        gap: 2px !important;
        padding: 0 2px !important;
    }
    
    .modern-software-card {
        min-width: 260px !important;
    }
    
    .software-card-header {
        padding: 10px !important;
        gap: 10px !important;
    }
    
    .software-icon-modern,
    .default-software-icon-modern {
        width: 48px !important;
        height: 48px !important;
        border-radius: 10px !important;
    }
    
    .default-software-icon-modern {
        font-size: 22px !important;
    }
    
    .software-title-modern {
        font-size: 14px !important;
        line-height: 1.2 !important;
    }
    
    .software-vendor-modern {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }
    
    .software-rating-modern {
        margin-bottom: 6px !important;
    }
    
    .star-modern {
        font-size: 11px !important;
    }
    
    .rating-score-modern {
        font-size: 11px !important;
    }
    
    .download-stats-modern {
        font-size: 10px !important;
    }
    
    .software-actions-modern {
        padding: 0 10px 10px !important;
    }
    
    .btn-get-modern,
    .btn-view-modern {
        padding: 6px 14px !important;
        font-size: 12px !important;
        height: 32px !important;
        min-width: 70px !important;
    }
    
    .software-description-modern {
        font-size: 11px !important;
    }
    
    .software-meta-modern {
        padding: 0 10px 6px !important;
        gap: 6px !important;
    }
    
    .meta-item-modern {
        font-size: 10px !important;
        padding: 2px 6px !important;
        border-radius: 8px !important;
    }
    
    .meta-item-modern i {
        font-size: 9px !important;
    }
    
    .modern-showcase-more {
        margin-top: 15px !important;
    }
    
    .btn-view-more-modern {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* 游戏模块网格布局 - 小屏幕保持一行两列 */
    .game-showcase {
        padding: 12px 4px !important;
    }

    .game-grid {
        gap: 6px !important; /* 小屏幕稍微减少间距 */
    }

    .game-card,
    .software-showcase-card {
        min-height: 200px !important; /* 小屏幕稍微降低高度 */
        height: 260px !important;
    }

    .game-card .software-icon-wrapper,
    .software-showcase-card .software-icon-wrapper {
        padding: 10px 10px 6px !important;
    }

    .game-card .software-icon,
    .game-card .default-software-icon,
    .software-showcase-card .software-icon,
    .software-showcase-card .default-software-icon {
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
    }

    .game-card .default-software-icon,
    .software-showcase-card .default-software-icon {
        font-size: 20px !important;
    }

    .game-card .software-info-content,
    .software-showcase-card .software-info-content {
        padding: 0 1px 1px !important;
    }

    .game-card .software-name,
    .software-showcase-card .software-name {
        font-size: 13px !important;
        margin-bottom: 5px !important;
    }

    .game-card .software-meta-display span,
    .software-showcase-card .software-meta-display span {
        font-size: 9px !important;
        padding: 1px 4px !important;
    }

    .game-card .btn-download-showcase,
    .software-showcase-card .btn-download-showcase,
    .game-card .btn-game-download {
        padding: 6px 10px !important;
        font-size: 11px !important;
        height: 28px !important;
    }

    /* 搜索结果页面超小屏幕优化 */
    body.search .content-wrap {
        gap: 10px !important;
        padding: 10px 6px !important;
    }

    body.search .search-results-info {
        padding: 10px 12px !important;
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    body.search .featured-post {
        height: 120px !important;
    }

    body.search .featured-post:not(:has(img))::before {
        font-size: 30px !important;
    }

    body.search .content-post {
        padding: 10px !important;
        gap: 5px !important;
    }

    body.search .post-meta li {
        font-size: 9px !important;
    }

    body.search .post-meta .meta-category {
        padding: 1px 3px !important;
        font-size: 8px !important;
    }

    body.search .post-title {
        font-size: 14px !important;
        margin: 0 0 5px 0 !important;
    }

    body.search .post-content p {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
}

body.search .post-content p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
}

/* =================== 普通文章详情页面美化样式 =================== */
/* 只针对普通文章，不影响软件详情页面 */

/* 桌面端样式 */
.post-wrap.blog-single .main-single:not(.software-detail) {
    background: transparent;
    border: none;
    box-shadow: none;
    margin-bottom: 30px;
}

/* 文章内容容器 */
.post-wrap.blog-single .main-single:not(.software-detail) .content-post {
    padding: 20px 0 !important;
    background: transparent !important;
}

/* 文章标题美化 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-title,
.post-wrap.blog-single .main-single:not(.software-detail) h2.post-title {
    color: #333 !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 2.4 !important;
    margin: 0 0 35px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) h2.post-title a {
    color: #333 !important;
    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

/* 文章元信息美化 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-meta {
    background: transparent !important;
    border: none !important;
    padding: 0 0 20px 0 !important;
    margin: 0 0 25px 0 !important;
    border-bottom: 1px solid #eee !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: center !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul li {
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul li:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* 分类链接特殊样式 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul li a {
    color: #4CAF50 !important;
    text-decoration: none !important;
    font-weight: normal !important;
    transition: color 0.2s ease !important;
    font-size: 14px !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul li a:hover {
    color: #388e3c !important;
    text-decoration: underline !important;
}

/* 文章内容区域美化 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-content {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.8 !important;
    font-size: 16px !important;
    color: #333 !important;
    box-shadow: none !important;
}

/* 文章内容段落美化 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-content p {
    margin: 0 0 20px 0 !important;
    text-align: justify !important;
    color: #444 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    letter-spacing: 0.5px !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content p:first-child {
    font-size: 16px !important;
    font-weight: normal !important;
    color: #444 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 20px !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content p:last-child {
    margin-bottom: 0 !important;
}

/* 文章内容中的链接 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-content a {
    color: #4CAF50 !important;
    text-decoration: none !important;
    font-weight: normal !important;
    transition: all 0.2s ease !important;
    font-size: 16px !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content a:hover {
    color: #388e3c !important;
    text-decoration: underline !important;
}

/* 文章内容中的图片 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-content img {
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    margin: 20px 0 !important;
    transition: none !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content img:hover {
    transform: none !important;
}

/* 文章内容中的列表 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-content ul,
.post-wrap.blog-single .main-single:not(.software-detail) .post-content ol {
    margin: 20px 0 !important;
    padding-left: 20px !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content li {
    margin: 5px 0 !important;
    line-height: 1.8 !important;
}

/* 联系我们按钮美化 */
.post-wrap.blog-single .main-single:not(.software-detail) #login-btn {
    background: #4CAF50 !important;
    color: white !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: normal !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 30px auto !important;
    display: inline-block !important;
    text-decoration: none !important;
    text-align: center !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) #login-btn:hover {
    background: #388e3c !important;
    transform: none !important;
    box-shadow: none !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) #login-btn:active {
    transform: none !important;
    box-shadow: none !important;
}

/* 文章内容中的引用块 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-content blockquote {
    border-left: 3px solid #ddd !important;
    background: transparent !important;
    padding: 0 0 0 15px !important;
    margin: 20px 0 !important;
    border-radius: 0 !important;
    font-style: italic !important;
    color: #666 !important;
}

/* 文章内容中的代码块 */
.post-wrap.blog-single .main-single:not(.software-detail) .post-content pre,
.post-wrap.blog-single .main-single:not(.software-detail) .post-content code {
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 0 !important;
    font-family: 'Courier New', monospace !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content pre {
    padding: 10px !important;
    margin: 15px 0 !important;
    overflow-x: auto !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content code {
    padding: 1px 3px !important;
    font-size: 14px !important;
}

.post-wrap.blog-single .main-single:not(.software-detail) .post-content pre code {
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
    .post-wrap.blog-single .main-single:not(.software-detail) .content-post {
        padding: 15px 0 !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-title,
    .post-wrap.blog-single .main-single:not(.software-detail) h2.post-title {
        font-size: 24px !important;
        margin-bottom: 40px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) h2.post-title a {
        font-size: 24px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-meta {
        padding: 0 0 20px 0 !important;
        margin-bottom: 25px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        align-items: center !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-content p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-content p:first-child {
        font-size: 15px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) #login-btn {
        padding: 10px 25px !important;
        font-size: 15px !important;
        margin: 25px auto !important;
    }
}

@media (max-width: 480px) {
    .post-wrap.blog-single .main-single:not(.software-detail) .content-post {
        padding: 15px 0 !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-title,
    .post-wrap.blog-single .main-single:not(.software-detail) h2.post-title {
        font-size: 20px !important;
        margin-bottom: 35px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) h2.post-title a {
        font-size: 20px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-meta {
        padding: 0 0 18px 0 !important;
        margin-bottom: 20px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        align-items: center !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul li {
        font-size: 13px !important;
        white-space: nowrap !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-meta ul li a {
        font-size: 13px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-content p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) .post-content p:first-child {
        font-size: 14px !important;
    }
    
    .post-wrap.blog-single .main-single:not(.software-detail) #login-btn {
        padding: 8px 20px !important;
        font-size: 14px !important;
        margin: 20px auto !important;
    }
}

/* ===================================
   🔍 全新现代搜索界面设计
   ================================== */

/* 搜索主容器 */
.modern-search-hero {
    background: linear-gradient(180deg, #0871084f 0%, #fff 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modern-search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(76, 175, 80, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(46, 125, 50, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.search-hero-container {
    max-width: 800px;
    width: 100%;
    margin-top: 20px inherit;

    padding: 0 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 搜索标题区域 */
.search-title-area {
    margin-top: 20px;
    margin-bottom: 20px;
}

.search-main-heading {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-description {
    font-size: 18px;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    max-width: 500px;
    margin: 0 auto;
}

/* 搜索框区域 */
.search-box-area {
    margin-bottom: 50px;
}

.search-form-wrapper {
    margin: 0;
    width: 100%;
}

.search-input-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e0e6ed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.search-input-box:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.search-input-box:focus-within {
    box-shadow: 0 12px 40px rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.search-text-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 18px 25px;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
}

.search-text-input::placeholder {
    color: #95a5a6;
    font-weight: 400;
    opacity: 1;
}

.search-action-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    border: none;

    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.search-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.search-action-btn:hover::before {
    left: 100%;
}

.search-action-btn:hover {
    background: linear-gradient(135deg, #43A047 0%, #388E3C 100%);
    transform: translateX(2px);
}

.search-action-btn:active {
    transform: translateX(2px) scale(0.98);
}

/* 热门关键词区域 */
.search-keywords-area {
    margin-bottom: 40px;
}

.keywords-label {
    display: inline-block;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.keywords-label::before {
    content: '🔥';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 650px;
    margin: 0 auto;
}

.keyword-tag {
    display: inline-block;
    padding: 10px 18px;
    background: white;
    color: #5d6d7e;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.keyword-tag:hover {
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* 快速分类区域 */
.search-categories-area {
    margin-bottom: 0;
}

.categories-label {
    display: inline-block;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.categories-label::before {
    content: '📁';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 14px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e8ecef;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    gap: 12px;
}

.category-item:hover {
    background: #f8f9fa;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #4CAF50;
}

.category-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
}

.category-icon svg {
    width: 20px;
    height: 20px;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.category-item:hover .category-icon svg {
    color: white;
}

.category-details {
    flex: 1;
    text-align: left;
}

.category-name {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.3;
}

.category-count {
    display: block;
    color: #95a5a6;
    font-size: 12px;
    font-weight: 400;
}

/* ===================================
   📱 移动端响应式设计
   ================================== */

@media (max-width: 768px) {
    .modern-search-hero {
        padding: 60px 0;
        min-height: 50vh;
    }

    .search-hero-container {
        padding: 0 20px;
    }

    .search-main-heading {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .search-description {
        font-size: 16px;
    }

    .search-title-area {
        margin-bottom: 40px;
    }

    .search-box-area {
        margin-bottom: 40px;
    }

    .search-input-box {
        border-radius: 40px;
        max-width: 100%;
    }

    .search-text-input {
        padding: 16px 20px;
        font-size: 16px;
    }

    .search-action-btn {
        padding: 16px 24px;
        font-size: 15px;
        border-radius: 0 40px 40px 0;
        min-width: 90px;
    }

    .keywords-list {
        gap: 10px;
    }

    .keyword-tag {
        padding: 8px 14px;
        font-size: 13px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-item {
        padding: 12px 16px;
        border-radius: 12px;
        gap: 10px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .category-icon svg {
        width: 16px;
        height: 16px;
    }

    .category-name {
        font-size: 13px;
    }

    .category-count {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .modern-search-hero {
        padding: 40px 0;
        min-height: auto;
    }

    .search-hero-container {
        padding: 0 15px;
    }

    .search-main-heading {
        font-size: 28px;
        line-height: 1.3;
    }

    .search-description {
        font-size: 15px;
        line-height: 1.4;
    }

    .search-title-area {
        margin-bottom: 15px;
        margin-top: 20px;
    }

    .search-box-area {
        margin-bottom: 15px;
    }

    .search-input-box {
        border-radius: 30px;
    }

    .search-text-input {
        padding: 14px 18px;
        font-size: 16px;
    }

    .search-action-btn {
        padding: 2px 2px;
        font-size: 14px;
        border-radius: 0 30px 30px 0;
        min-width: 80px;
    }

    .search-keywords-area,
    .search-categories-area {
        margin-bottom: 30px;
    }

    .keywords-label,
    .categories-label {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .keyword-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-item {
        padding: 10px 14px;
        gap: 8px;
    }

    .category-icon {
        width: 32px;
        height: 32px;
    }

    .category-icon svg {
        width: 14px;
        height: 14px;
    }

    .category-name {
        font-size: 12px;
    }

    .category-count {
        font-size: 10px;
    }
}

/* ===================================
   🎯 无障碍访问和交互优化
   ================================== */

.search-action-btn:focus-visible,
.keyword-tag:focus-visible,
.category-item:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.search-text-input:focus-visible {
    outline: none;
}

/* 移除滚动条样式优化 */
.keywords-list,
.categories-grid {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.keywords-list::-webkit-scrollbar,
.categories-grid::-webkit-scrollbar {
    display: none;
}

/* ===================================
   🔍 简洁搜索框样式 - 搜索容器90%屏幕宽度
   ================================== */

/* 主搜索容器 - 简洁白色背景 */
.home-search-module.modern-search-section {
    background: #ffffff;
    padding: 60px 0;
    position: relative;
}

/* 搜索内容包装器 */
.search-content-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
}

/* 搜索标题区域 */
.search-header-section {
    margin-bottom: 40px;
}

.search-main-title {
    font-size: 42px;
    font-weight: 300;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    font-weight: 300;
    line-height: 1.4;
}

/* 搜索表单区域 */
.search-form-section {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.enhanced-search-form {
    margin: 0;
    width: 100%;
}

/* 搜索容器 - 90%屏幕宽度，稳定居中 */
.search-input-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch;
    width: 90vw;
    max-width: calc(100vw - 40px);
    margin: 0 auto;
    background: white;
    border: 2px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: static;
}

.search-input-container:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.search-input-container:focus-within {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-color: #4CAF50;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0; /* 重要：允许flex子项收缩 */
}

/* 搜索图标隐藏 */
.search-icon {
    display: none;
}

/* 搜索输入框 */
.search-field-enhanced {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: 15px 20px;
    font-size: 16px;
    color: #333;
    font-weight: 400;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 0; /* 重要：允许输入框收缩 */
}

.search-field-enhanced::placeholder {
    color: #999;
    font-weight: 400;
}

/* 搜索按钮 - 绿色设计 */
.search-submit-enhanced {
    background: #4CAF50;
    border: none;
    border-radius: 0 23px 23px 0;
    padding: 15px 25px;
    color: white;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex: 0 0 auto; /* 不伸缩，保持内容宽度 */
}

.search-submit-enhanced:hover {
    background: #43A047;
}

.search-submit-enhanced:active {
    background: #388E3C;
}

/* 热门关键词区域 */
.hot-keywords-section {
    margin-bottom: 30px;
}

.hot-keywords-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #666;
    font-weight: 400;
    font-size: 15px;
}

.hot-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.hot-keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    line-height: 1.3;
}

.hot-keyword-tag:hover {
    background: #4CAF50;
    color: white;
    text-decoration: none;
    border-color: #4CAF50;
}

/* 快速分类区域 */
.quick-categories-section {
    margin-bottom: 0;
}

.categories-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #666;
    font-weight: 400;
    font-size: 15px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    max-width: 520px;
    margin: 0 auto;
}

.category-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f9f9f9;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.category-quick-link:hover {
    background: #f0f0f0;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.category-icon {
    width: 40px;
    height: 40px;
    background: #e8e8e8;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* SVG图标样式 */
.category-icon svg {
    width: 16px;
    height: 16px;
    color: #666;
}

.category-info {
    text-align: center;
}

.category-name {
    display: block;
    color: #333;
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 3px;
    line-height: 1.2;
}

.category-count {
    display: block;
    color: #999;
    font-size: 11px;
    font-weight: 400;
}

/* ===================================
   📱 移动端优化响应式设计
   ================================== */

@media (max-width: 768px) {
    .home-search-module.modern-search-section {
        padding: 50px 0;
    }

    .search-content-wrapper {
        margin: 0 20px;
        padding: 20px;
    }

    .search-main-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .search-subtitle {
        font-size: 16px;
    }

    .search-header-section {
        margin-bottom: 35px;
    }

    .search-form-section {
        margin-bottom: 35px;
    }

    /* 平板端：搜索容器90%屏幕宽度 */
    .search-input-container {
        width: 90vw;
        max-width: calc(100vw - 40px);
        border-radius: 20px;
        border-width: 1px;
        display: flex !important;
        flex-direction: row !important;
    }

    .search-field-enhanced {
        padding: 14px 16px;
        font-size: 16px;
    }

    .search-submit-enhanced {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 0 19px 19px 0;
    }

    .hot-keywords-list {
        gap: 8px;
    }

    .hot-keyword-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-quick-link {
        padding: 12px 8px;
    }

    .category-icon {
        width: 32px;
        height: 32px;
    }

    .category-icon svg {
        width: 14px;
        height: 14px;
    }

    .category-name {
        font-size: 12px;
    }

    .category-count {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .home-search-module.modern-search-section {
        padding: 40px 0;
    }

    .search-content-wrapper {
        margin: 0 10px;
        padding: 10px;
    }

    .search-main-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .search-subtitle {
        font-size: 15px;
        line-height: 1.3;
    }

    .search-header-section {
        margin-bottom: 30px;
    }

    .search-form-section {
        margin-bottom: 30px;
    }

    /* 手机端：搜索容器90%屏幕宽度，绝对不换行 */
    .search-input-container {
        width: 90vw !important;
        max-width: calc(100vw - 20px) !important;
        border-radius: 12px;
        border-width: 1px;
        min-height: 40px;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .search-input-wrapper {
        flex: 1;
        min-width: 0;
    }

    .search-field-enhanced {
        padding: 10px 12px !important;
        font-size: 16px;
        flex: 1;
        min-width: 0 !important;
        width: auto !important;
    }

    .search-submit-enhanced {
        padding: 10px 14px !important;
        font-size: 13px;
        border-radius: 0 11px 11px 0;
        flex: 0 0 auto !important;
        min-width: 50px !important;
        max-width: 50px !important;
        white-space: nowrap;
    }

    .hot-keywords-section,
    .quick-categories-section {
        margin-bottom: 25px;
    }

    .hot-keywords-label,
    .categories-label {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .hot-keyword-tag {
        padding: 5px 10px;
        font-size: 11px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-quick-link {
        padding: 10px 6px;
    }

    .category-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }

    .category-icon svg {
        width: 12px;
        height: 12px;
    }

    .category-name {
        font-size: 11px;
    }

    .category-count {
        font-size: 9px;
    }
}

/* ===================================
   🎯 焦点和无障碍访问
   ================================== */

.search-submit-enhanced:focus-visible,
.hot-keyword-tag:focus-visible,
.category-quick-link:focus-visible {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.search-field-enhanced:focus-visible {
    outline: none;
}
