/* 全局基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: linear-gradient(135deg, #f6f8fb 0%, #eef2f7 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* 头部 */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.header h1 {
    font-size: 28px;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.header .subtitle {
    color: #777;
    font-size: 14px;
}

/* 查询面板 */
.search-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row label {
    width: 80px;
    text-align: right;
    font-size: 14px;
    color: #555;
    flex-shrink: 0;
}

.input-text {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-text:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.input-select {
    height: 42px;
    padding: 0 10px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    width: 150px;
}

.btn-search {
    height: 42px;
    padding: 0 36px;
    border: none;
    border-radius: 8px;
    background: #e9432d;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-left: auto;
}

.btn-search:hover {
    background: #d63a25;
}

.btn-search:active {
    transform: scale(0.97);
}

.btn-search:disabled {
    background: #c8c8c8;
    cursor: not-allowed;
}

/* 渠道切换按钮 */
.channel-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.channel-btn {
    height: 38px;
    padding: 0 20px;
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.channel-btn:hover {
    border-color: #4a90d9;
    color: #4a90d9;
}

.channel-btn.active {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

/* 消息提示 */
.message {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message.error {
    display: block;
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
}

.message.info {
    display: block;
    background: #e8f4fd;
    color: #2471a3;
    border: 1px solid #bfdeee;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-top-color: #e9432d;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 结果面板 */
.result-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

.result-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.result-header h2 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.result-meta {
    font-size: 13px;
    color: #888;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.result-table thead th {
    background: #f7f8fa;
    padding: 10px 12px;
    text-align: left;
    color: #555;
    border-bottom: 2px solid #e5e8ee;
    white-space: nowrap;
}

.result-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f1f4;
    vertical-align: top;
}

.result-table tbody tr:hover {
    background: #fafbfd;
}

.tel-text {
    color: #e9432d;
    font-weight: bold;
    white-space: nowrap;
}

.btn-copy {
    padding: 4px 12px;
    border: 1px solid #4a90d9;
    border-radius: 6px;
    background: #fff;
    color: #4a90d9;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-copy:hover {
    background: #4a90d9;
    color: #fff;
}

/* 无结果提示 */
.empty-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 15px;
}
