/* =========================================================
 * 齐轩通信 - 靓号推荐系统样式
 * ========================================================= */

/* ---------- 号码卡片网格 ---------- */
.phone-number-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.phone-number-item {
    position: relative;
    text-align: center;
    background: #EBEBEB;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    padding: 15px 10px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.phone-number-item:hover {
    background: #fc5952;
    border-color: #fc5952;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.phone-number-item:hover .phone-number,
.phone-number-item:hover .phone-price {
    color: #ffffff;
}

.phone-number {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.phone-price {
    font-size: 14px;
    color: #fc5952;
    margin-top: 6px;
    font-weight: 600;
    transition: color 0.25s ease;
}

/* ---------- 咨询提示框 ---------- */
.phone-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fc5952;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    min-width: 320px;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: normal;
}

.phone-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fc5952;
}

/* ---------- 分页 ---------- */
.phone-pagination {
    text-align: center;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.phone-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.phone-pagination .page-numbers.current {
    background: #fc5952;
    color: #fff;
    border-color: #fc5952;
    font-weight: bold;
}

.phone-pagination .page-numbers:hover:not(.current) {
    background: #e0e0e0;
}

.phone-pagination .more-link {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    font-weight: bold;
}

/* ---------- 搜索框 ---------- */
.phone-search-wrap {
    margin: 20px 0;
}

.phone-search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.phone-search-prefix {
    font-size: 22px;
    font-weight: 700;
    color: #fc5952;
}

.phone-search-digit {
    width: 44px;
    height: 44px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s;
}

.phone-search-digit:focus {
    border-color: #fc5952;
}

.phone-search-separator {
    font-size: 22px;
    color: #aaa;
    margin: 0 2px;
}

#phone-search-btn {
    padding: 10px 24px;
    background: #fc5952;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

#phone-search-btn:hover {
    background: #e0483f;
}

.phone-search-tip {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin: 8px 0;
}

.phone-search-result {
    text-align: center;
    font-size: 14px;
    color: #fc5952;
    font-weight: 600;
    min-height: 20px;
    margin: 8px 0;
}

.phone-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* =========================================================
 * 响应式
 * ========================================================= */
@media (max-width: 992px) {
    .phone-number-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .phone-number-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .phone-number {
        font-size: 15px;
    }
    .phone-price {
        font-size: 12px;
    }
    .phone-search-digit {
        width: 34px;
        height: 38px;
        font-size: 16px;
    }
    .phone-search-prefix {
        font-size: 18px;
    }
    .phone-search-box {
        padding: 12px;
        gap: 5px;
    }
}