/* 搜索框样式 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 300px;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background-color: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 域名类型导航 */
.domain-nav-item {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.domain-nav-item:hover {
    background-color: #e2e8f0;
    color: #334155;
}

.domain-nav-item.active {
    background-color: #CCCCCC;
    color: #333333;
}

/* 域名卡片样式 */
.domain-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.domain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-color: #d1d5db;
}

.domain-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.domain-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1rem;
}

.domain-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.domain-tag {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 域名网格 */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .domains-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 域名详情弹窗样式调整 */
.domain-modal-content {
    max-width: 600px;
    width: 90%;
}

/* 联系购买按钮样式 */
.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #f1f5f9;
    color: #475569;
    border-radius: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.contact-btn:hover {
    background-color: #e2e8f0;
    color: #334155;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 手机端域名商店布局优化 */
@media (max-width: 768px) {
    /* 域名商店标题和返回按钮布局优化 */
    .flex.justify-between.items-center.mb-8 {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .flex.justify-between.items-center.mb-8 h1 {
        font-size: 1.5rem;
        flex: 1;
    }
    
    .back-home-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 域名分类按钮优化 - 保持原来的样式，只做必要调整 */
    .domain-nav-item {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* 搜索框优化 */
    .search-box {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* 域名卡片优化 */
    .domain-card {
        padding: 1rem;
    }
    
    .domain-name {
        font-size: 1.125rem;
    }
    
    .domain-price {
        font-size: 1.25rem;
    }
    
    .domain-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 域名网格优化 */
    .domains-grid {
        gap: 1rem;
    }
    
    /* 弹窗优化 */
    .domain-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-details {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    /* 联系购买按钮优化 */
    .contact-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    /* 搜索框和描述文字布局优化 */
    .flex.justify-between.items-center.mb-6 {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* 超小屏幕手机优化 */
@media (max-width: 480px) {
    .domain-nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .domain-card {
        padding: 0.75rem;
    }
    
    .domain-name {
        font-size: 1rem;
    }
    
    .domain-price {
        font-size: 1.125rem;
    }
    
    .domain-meta span {
        font-size: 0.75rem;
    }
    
    .modal-details {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.125rem;
    }
    
    .contact-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* 在超小屏幕上调整标题和按钮的间距 */
    .flex.justify-between.items-center.mb-8 {
        gap: 0.5rem;
    }
    
    .flex.justify-between.items-center.mb-8 h1 {
        font-size: 1.25rem;
    }
    
    .back-home-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}