/* 手机号码生成器专用样式 */

/* 生成器卡片 */
.generator-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.generator-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.generator-card h3 i {
    color: #3498db;
    font-size: 1.3rem;
}

/* 选项网格布局 */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    flex-direction: column;
}

.option-item label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
}

.form-select,
.form-input {
    padding: 10px 14px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 6px;
    display: block;
}

/* 复选框选项 */
.checkbox-option {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* 结果卡片 */
.result-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.result-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #27ae60;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-header h3 i {
    font-size: 1.3rem;
}

.result-header h3 span {
    color: #e74c3c;
    font-weight: 700;
}

/* 标签页导航 */
.tab-container {
    margin-top: 24px;
}

.tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #ecf0f1;
    margin-bottom: 20px;
}

.tab-button {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表格容器 */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.result-table thead {
    background: #f8f9fa;
}

.result-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
}

.result-table tbody tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s ease;
}

.result-table tbody tr:hover {
    background: #f8f9fa;
}

.result-table td {
    padding: 14px 16px;
    color: #34495e;
    vertical-align: middle;
}

.result-table td:first-child {
    font-weight: 600;
    color: #7f8c8d;
}

.result-table td:nth-child(2) {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 500;
    color: #2c3e50;
}

.result-table button {
    padding: 6px 12px;
    border: 1px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.result-table button:hover {
    background: #3498db;
    color: white;
}

.result-table button.copied {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

/* 文本视图 */
.result-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    background: #f8f9fa;
    color: #2c3e50;
}

.result-textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* 导出操作 */
.export-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #ecf0f1;
}

.btn-outline {
    padding: 10px 24px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-outline.copied {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .generator-card,
    .result-card {
        padding: 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .tab-nav {
        overflow-x: auto;
    }

    .tab-button {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .result-table {
        font-size: 0.85rem;
    }

    .result-table th,
    .result-table td {
        padding: 10px 8px;
    }

    .export-actions {
        flex-direction: column;
    }

    .btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .generator-card h3,
    .result-header h3 {
        font-size: 1.1rem;
    }

    .result-table th:first-child,
    .result-table td:first-child {
        display: none;
    }

    .result-table th:nth-child(3),
    .result-table td:nth-child(3) {
        font-size: 0.8rem;
    }
}
