/* 手机号检测平台 - 简约样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f5f7fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部栏 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 24px;
    color: #4361ee;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.version {
    background: #e9ecef;
    color: #6c757d;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.balance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 500;
}

.balance-info i {
    color: #4361ee;
}

#balanceAmount {
    color: #4361ee;
    font-weight: 600;
}

/* 主要内容 */
.main-content {
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 查询面板 */
.query-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tabs {
    display: flex;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 8px;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: white;
    color: #4361ee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 标签内容 */
.tab-content {
    padding: 20px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #495057;
}

.input-with-btn {
    position: relative;
}

.input-with-btn input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-with-btn input:focus {
    outline: none;
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.input-with-btn .btn-small {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    border: none;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
}

/* 手机号输入 - 修复版 */
.phone-input {
    display: flex;
    gap: 10px;
    position: relative;
}

.phone-input .country-select {
    flex: 0 0 auto;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    min-width: 120px;
    max-width: 150px;
}

.phone-input input {
    flex: 1;
    padding: 12px 40px 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.phone-input .btn-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 平台选择 */
.platform-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
}

/* 表单选项 */
.form-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #495057;
}

.form-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    cursor: pointer;
}

/* 表单按钮 */
.form-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a56d4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.btn-secondary:hover {
    background: #dee2e6;
}

/* 文本域容器 */
.textarea-container {
    position: relative;
}

.textarea-container textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.textarea-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
}

/* 批量查询信息 */
.batch-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.info-item span {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-item strong {
    font-size: 14px;
    color: #333;
}

/* 进度条 */
.progress-container {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4361ee, #3a56d4);
    width: 0%;
    transition: width 0.3s;
}

.progress-info {
    font-size: 12px;
    color: #6c757d;
}

/* 结果面板 */
.results-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.results-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-panel .panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-panel .actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    transition: all 0.3s;
}

.btn-icon:hover {
    border-color: #4361ee;
    color: #4361ee;
}

.results-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
}

.results-count i {
    color: #4361ee;
}

#resultsCount {
    color: #4361ee;
    font-weight: 600;
}

/* 结果表格 */
.results-table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.results-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

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

.no-data td {
    text-align: center;
    padding: 50px !important;
}

.empty-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #adb5bd;
}

.empty-results i {
    font-size: 48px;
    opacity: 0.5;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-new {
    background: rgba(76, 201, 240, 0.1);
    color: #4cc9f0;
    border: 1px solid rgba(76, 201, 240, 0.3);
}

.status-old {
    background: rgba(247, 37, 133, 0.1);
    color: #f72585;
    border: 1px solid rgba(247, 37, 133, 0.3);
}

.status-banned {
    background: rgba(249, 65, 68, 0.1);
    color: #f94144;
    border: 1px solid rgba(249, 65, 68, 0.3);
}

.status-locked {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
    border: 1px solid rgba(67, 97, 238, 0.3);
}

.status-error {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

/* 结果统计 */
.results-stats {
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
}

.stat-item.success {
    background: rgba(76, 201, 240, 0.1);
}

.stat-item.warning {
    background: rgba(247, 37, 133, 0.1);
}

.stat-item.info {
    background: rgba(72, 149, 239, 0.1);
}

.stat-item.primary {
    background: rgba(67, 97, 238, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-item.success .stat-icon {
    background: #4cc9f0;
    color: white;
}

.stat-item.warning .stat-icon {
    background: #f72585;
    color: white;
}

.stat-item.info .stat-icon {
    background: #4895ef;
    color: white;
}

.stat-item.primary .stat-icon {
    background: #4361ee;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* 页脚 */
.footer {
    background: #343a40;
    color: white;
    padding: 20px 0;
    margin-top: 30px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: #adb5bd;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #20c997;
}

.api-info {
    font-size: 12px;
    color: #adb5bd;
    margin-top: 5px;
}

/* 弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #adb5bd;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    padding: 20px;
}

.balance-display {
    text-align: center;
    padding: 30px 20px;
}

.balance-icon {
    font-size: 48px;
    color: #4361ee;
    margin-bottom: 15px;
}

.balance-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #4361ee;
}

.balance-label {
    font-size: 14px;
    color: #6c757d;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 响应式设计 - 针对手机端优化 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tabs {
        width: 100%;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    /* 修复手机端国家选择框 */
    .phone-input {
        flex-direction: row;
        gap: 5px;
    }
    
    .phone-input .country-select {
        flex: 0 0 120px;
        min-width: 120px;
        max-width: 120px;
        padding: 10px;
        font-size: 13px;
    }
    
    .phone-input input {
        flex: 1;
        padding: 10px 35px 10px 10px;
        font-size: 14px;
    }
    
    .phone-input .btn-clear {
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px;
        font-size: 14px;
    }
    
    .batch-info {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* 隐藏部分列在手机端 */
    .results-table th:nth-child(4),
    .results-table td:nth-child(4),
    .results-table th:nth-child(5),
    .results-table td:nth-child(5),
    .results-table th:nth-child(6),
    .results-table td:nth-child(6) {
        display: none;
    }
    
    .results-table {
        font-size: 13px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .phone-input .country-select {
        flex: 0 0 110px;
        min-width: 110px;
        max-width: 110px;
        padding: 8px;
        font-size: 12px;
    }
    
    .phone-input input {
        padding: 8px 30px 8px 8px;
        font-size: 13px;
    }
    
    .phone-input .btn-clear {
        right: 3px;
        width: 28px;
        height: 28px;
    }
    
    .platform-select {
        padding: 10px;
        font-size: 13px;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .tab-btn i {
        font-size: 12px;
    }
    
    .logo h1 {
        font-size: 16px;
    }
    
    .version {
        font-size: 11px;
        padding: 1px 6px;
    }
    
    .balance-info {
        padding: 6px 10px;
        font-size: 13px;
    }
}