/* whois域名查询页面样式 */
.domain-container {
    max-width: 680px;
    margin: 120px auto 80px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.domain-container h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 1.1rem;
}

.input-container {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    background: var(--dark-bg);
    color: var(--text-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.2);
}

.input-container i {
    padding: 0 18px;
    color: var(--accent-color);
    font-size: 20px;
}

.form-group input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 500;
}

.btn-block {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #00a8e8);
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
    transition: all 0.4s ease;
    display: block;
}

.btn-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 198, 255, 0.5);
}

.result-box {
    margin-top: 2.5rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.08), rgba(0, 198, 255, 0.03));
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.statistics {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 198, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.domain-list {
    margin-bottom: 2rem;
}

.domain-list h3 {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-list h3 i {
    color: var(--accent-color);
}

.domain-item {
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.domain-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.domain-item.available {
    border-left: 4px solid #2ecc71;
}

.domain-item.registered {
    border-left: 4px solid #e74c3c;
}

.domain-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domain-status {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
}

.domain-status.available {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.domain-status.registered {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.domain-price {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.history {
    margin-top: 25px;
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
}

.history h3 {
    margin-bottom: 15px;
    color: var(--text-gray);
    font-size: 18px;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.history h3 i {
    margin-right: 10px;
    color: var(--accent-color);
    font-size: 20px;
}

.history-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.history-item:hover {
    background-color: rgba(0, 198, 255, 0.05);
    transform: translateX(5px);
}

.history-item:last-child {
    border-bottom: none;
}

.history-empty {
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
    padding: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.8rem;
    color: #00a8e8;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-gray);
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-message {
    padding: 1rem;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    color: #e74c3c;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .domain-container {
        margin: 80px auto 60px;
        padding: 2rem;
    }

    .statistics {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .domain-container {
        padding: 1.5rem;
    }

    .domain-container h2 {
        font-size: 1.8rem;
    }
}

/* 加载遮罩层 */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 30, 48, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    color: var(--accent-color);
}

.loading-content i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

.loading-content p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 调整 resultBox 为相对定位 */
.result-box {
    position: relative;
    margin-top: 2.5rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.08), rgba(0, 198, 255, 0.03));
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

/* WHOIS详情按钮 */
.btn-detail {
    margin-top: 0.8rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), #00a8e8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 198, 255, 0.4);
}

/* WHOIS详情模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--accent-color), #00a8e8);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 1.5rem;
    position: relative;
    min-height: 200px;
}

/* WHOIS信息展示样式 */
.whois-info-grid {
    display: grid;
    gap: 1.5rem;
}

.whois-section {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
    transition: all 0.3s ease;
}

.whois-section:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.1);
}

.whois-section h4 {
    margin: 0 0 1rem 0;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.whois-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.whois-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.whois-label {
    font-weight: 500;
    color: var(--text-gray);
    min-width: 100px;
}

.whois-value {
    font-weight: 600;
    color: var(--text-light);
    text-align: right;
    flex: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .whois-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .whois-label {
        min-width: auto;
    }

    .whois-value {
        text-align: left;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .whois-section {
        padding: 1rem;
    }
}

/* 匹配标识徽章 */
.match-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

/* 在原有 match-badge 样式基础上添加 */
.recommend-match {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    animation: pulse 2s infinite;  /* 添加闪烁动画吸引注意 */
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* 置顶项视觉强化 */
.domain-item.exact-match-item {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(46, 204, 113, 0.05));
    border: 3px solid var(--accent-color);  /* 加粗边框 */
    border-left: 8px solid var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 198, 255, 0.3);  /* 更强阴影 */
    margin: 1.2rem 0;
    padding: 1.2rem;
    position: relative;
    z-index: 1;
}

.domain-item.exact-match-item::before {
    content: "👑";
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.domain-item.exact-match-item:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.3);
}

/* 完美备选域名视觉强化 */
.domain-item.exact-standbymatch-item {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(0, 198, 255, 0.05));
    border: 3px solid var(--accent-color);
    border-left: 6px solid var(--accent-color);
    border-left: 8px solid var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 198, 255, 0.3);  /* 更强阴影 */
    margin: 1.2rem 0;
    padding: 1.2rem;
    position: relative;
    z-index: 1;
}
.domain-item.exact-standbymatch-item::before {
    content: "💡"; /* 或其他图标 */
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 1.5rem;
}

/* 完美备选徽章样式 */
.match-badge.prefix-match {
    background: linear-gradient(135deg, var(--accent-color), #00a8e8);
    color: white;
    animation: pulse 2s infinite;
}

/* 匹配标识徽章样式 */
.match-badge.exact-match {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    animation: pulse 1.5s infinite;
}

.match-badge.prefix-match {
    background: linear-gradient(135deg, var(--accent-color), #00a8e8);
    color: white;
}

/* 在 domain.css 中添加以下内容 */

/* 在 domain.css 中替换筛选控件样式 */

/* 筛选控件样式 - 优化版 */
.filter-controls {
    margin: 2rem 0 1.5rem;
    padding: 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.filter-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
}

/* 统一 select 和 input 样式 */
.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--dark-bg);
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* 移除 input-container 的嵌套边框 */
.filter-group .input-container {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

.filter-group .input-container input {
    padding-left: 2.5rem; /* 为图标留出空间 */
}

.filter-group .input-container i {
    position: absolute;
    left: 1rem;
    color: var(--accent-color);
    font-size: 18px;
    padding: 0;
    pointer-events: none;
}

/* 搜索组特殊处理 */
.search-group {
    flex: 2;
    min-width: 200px;
    position: relative; /* 为了让图标绝对定位 */
}

/* 悬停和焦点效果 */
.filter-group select:hover,
.filter-group input:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 198, 255, 0.1);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 198, 255, 0.15);
    outline: none;
}

/* 按钮样式优化 */
.btn-filter,
.btn-reset {
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0;
    height: 42px; /* 与其他输入框对齐 */
}

.btn-filter {
    background: linear-gradient(135deg, var(--accent-color), #00a8e8);
    color: white;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 198, 255, 0.3);
}

.btn-reset {
    background: var(--dark-bg);
    color: var(--text-gray);
    border: 1px solid var(--border-color);
}

.btn-reset:hover {
    background: var(--border-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

/* 禁用状态 */
.price-filter-group.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* 统一的域名结果列表 */
.domain-results-list {
    margin-top: 1.5rem;
}

.domain-results-list h3 {
    margin-bottom: 1rem;
    color: var(--text-gray);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.domain-results-list h3 i {
    color: var(--accent-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group,
    .search-group {
        width: 100%;
        min-width: auto;
    }

    .btn-filter,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
}

/* 筛选结果提示 */
.filter-info {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    color: #2ecc71;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-info i {
    font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group,
    .search-group {
        width: 100%;
        min-width: auto;
    }

    .btn-filter,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
}