/* ============================================================================
   域名搜索模块 - 自定义样式
   与Vuexy前台模板集成
   ============================================================================ */

/* 英雄头部 - 使用Vuexy框架样式 */
.landing-hero {
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

/* 搜索框 - Vuexy集成 */
.search-box {
    position: relative;
}

.search-box .input-group-lg .form-control {
    height: 56px;
    font-size: 16px;
    border-radius: 8px 0 0 8px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box .input-group-lg .form-control:focus {
    border-color: #696cff;
    box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
}

.search-box .input-group-lg .btn {
    height: 56px;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    font-weight: 600;
    padding: 0 24px;
}

/* 搜索建议 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: -1px;
}

.suggestions-list {
    padding: 8px 0;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

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

.suggestion-item:hover {
    background-color: #f8f9fa;
    color: #696cff;
}

.suggestion-item .suggestion-text {
    font-size: 14px;
    color: #333;
}

.suggestion-item .suggestion-meta {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* 加载指示器 */
.loading-indicator {
    text-align: center;
    padding: 60px 20px;
}

.loading-indicator .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-indicator p {
    color: #666;
    font-size: 16px;
}

/* 结果卡片 */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 24px;
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

/* 历史卡片 */
.history-card {
    transition: all 0.3s ease;
}

.history-card:hover {
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.15);
    transform: translateY(-2px);
}

/* 状态徽章 */
.badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
}

/* 价格信息 */
#priceInfo {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    border-left: 4px solid #696cff;
}

#priceInfo p {
    margin-bottom: 8px;
    font-size: 15px;
}

#priceInfo .text-primary {
    font-weight: 700;
    color: #696cff;
}

/* 按钮组 - 使用Vuexy框架样式 */
.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

/* 按钮样式由Vuexy框架提供 */

/* 推荐后缀 */
#recommendationsSection {
    margin-top: 40px;
}

.recommendation-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.recommendation-card:hover {
    border-color: #696cff;
    box-shadow: 0 4px 12px rgba(105, 108, 255, 0.15);
    transform: translateY(-2px);
}

.recommendation-tld {
    font-size: 20px;
    font-weight: 700;
    color: #696cff;
    margin-bottom: 8px;
}

.recommendation-price {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.recommendation-status {
    font-size: 12px;
    color: #999;
}

/* 历史记录 */
#historySection {
    margin-top: 40px;
}

.table {
    font-size: 14px;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
    font-weight: 600;
    color: #333;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table td {
    vertical-align: middle;
    padding: 12px 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-container {
        padding: 40px 15px;
    }
    
    .search-container h1 {
        font-size: 1.8rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-box .input-group-lg .form-control,
    .search-box .input-group-lg .btn {
        height: 48px;
        font-size: 14px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .recommendation-card {
        padding: 16px;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table td {
        padding: 8px 12px;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* 注意：工具类由Vuexy框架提供，无需重复定义 */

/* 额外的交互效果 */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* 加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner-border {
    animation: spin 1s linear infinite;
}

/* 搜索框焦点效果 */
.search-box .form-control:focus {
    border-color: #696cff;
    box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
}

/* 徽章样式优化 */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 表格行悬停效果 */
.table tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* 卡片阴影效果 */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 推荐卡片网格 */
#recommendationsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* 响应式推荐卡片 */
@media (max-width: 768px) {
    #recommendationsList {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* 禁用状态 */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载指示器 */
#loadingIndicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* 错误消息样式 */
#errorMessage {
    border-left: 4px solid #dc3545;
}

/* 成功消息样式 */
.alert-success {
    border-left: 4px solid #28a745;
}

